Thread Bugs in meinem Skript: Hash file (15 answers)
Opened by Lauvia at 2013-09-16 12:27

Lauvia
 2013-09-16 15:56
#170302 #170302
User since
2013-09-05
42 Artikel
BenutzerIn
[default_avatar]
Hallo GwenDragon,

für Dateitest beim Verzeichnis ist geregelt, war Tippfehler, use strict und warnings im Modul Log4test jetzt auch, Danke!

beim anderen Fehler leider nicht.
deine Variante Datei zu öffnen

Code (perl): (dl )
1
2
3
4
5
6
open (my $file_handle, '>', $in_file) or die "Cannot Open html file: $in_file";

...
...
...
close file_handle;


und meine:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if(! open (readFile, $in_file))
{
    Log_Error("Cannot read html file: '$in_file'");
    die;
}
                                
                        
my $info_ref;
                        
while (my $line = <readFile>)
{
...
...                       
}


bewirken das gleiche:


16.09.2013 15:49:14 [INFO] Running script ErrorTracking.pl version 1.0.0
16.09.2013 15:49:14 [INFO] USAGE: ErrorTracking.pl <html file> [<output directory>]
16.09.2013 15:49:14 [INFO] Script parameters
16.09.2013 15:49:14 [INFO] Output directory: 'tutos'
16.09.2013 15:49:14 [INFO] Data HTML hash: 'tutos\html_hash.txt'

16.09.2013 15:49:14 [INFO] HTML file: '.'

16.09.2013 15:49:14 [ERROR] Cannot read html file: '.'


Verbindung zwischen $html_file und $in_file scheint nicht zu funktionieren!

View full thread Bugs in meinem Skript: Hash file