Thread I/O Operations: Pfade übertragen auf einen HTML-Parser (17 answers)
Opened by lin at 2010-10-03 13:29

lin
 2010-10-04 22:35
#141717 #141717
User since
2010-09-26
35 Artikel
BenutzerIn
[default_avatar]
Hi Topeg


da bin ich wieder! Hab einen sehr langen Tag gehabt.

Vielen Dank nochmals für das Script!! Bin grad nach Hause gekommen.

ich hab das Script mal eingefügt in das Arbeitsverzeichnis. Das scheint echt klasse zu sein. Es läuft schon seit ca. 20 Minuten.

Seit 20 Minuten schreibt die Konsole am laufenden Band....

Bearbeite nun datei: einzelergebnis7b2pö.html!
Bearbeite nun datei: einzelergebnis7b2x.html!
Bearbeite nun datei: einzelergebnis7b2xy.html!
Bearbeite nun datei: einzelergebnis7b2xf.html!

usw. usf. - So wie es aussieht arbeite der Parser jetzt die 22000 Einzelergebnisse - also die HTML-Files durch. Klasse Sache.

Währenddessen werde ich ds Script so wie du es umgebaut u. gecodet hast mal versuchen genauer zu verstehen.


update nachdem es ungefähr eine halbe Stunde im Schirm (in der Console permanent so weiterging mit der duchlaufenden Botschaft:

Quote
Bearbeite nun datei: htmlfiles/einzelergebnis2592.html!
Bearbeite nun datei: htmlfiles/einzelergebnisdee0.html!
Bearbeite nun datei: htmlfiles/einzelergebnis987b-2.html!
Bearbeite nun datei: htmlfiles/einzelergebnise20b.html!
unexpected format: parsing stopped at perl_script_six.pl line 59.
Bearbeite nun datei: htmlfiles/einzelergebnised05.html!
Bearbeite nun datei: htmlfiles/einzelergebnisdec3.html!


....kam dann irgendwann ein Ende:...und das hier:


Quote
Use of uninitialized value in concatenation (.) or string at perl_script_six.pl
line 92 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl will try to tell you the
name of the variable (if any) that was undefined. In some cases it cannot
do this, so it also tells you what operation you used the undefined value
in. Note, however, that perl optimizes your program and the operation
displayed in the warning may not necessarily appear literally in your
program. For example, "that $foo" is usually optimized into "that "
. $foo, and the warning will refer to the concatenation (.) operator,
even though there is no . in your program.

Use of uninitialized value in concatenation (.) or string at perl_script_six.pl line 99 (#1)
Wide character in print at perl_script_six.pl line 99 (#2)
(S utf8) Perl met a wide character (>255) when it wasn't expecting
one. This warning is by default on for I/O (like print). The easiest
way to quiet this warning is simply to add the :utf8 layer to the
output, e.g. binmode STDOUT, ':utf8'. Another way to turn off the
warning is to add no warnings 'utf8'; but that is often closer to
cheating. In general, you are supposed to explicitly mark the
filehandle with an encoding, see open and perlfunc/binmode.

Wide character in print at perl_script_six.pl line 90 (#2)
Use of uninitialized value in concatenation (.) or string at

perl_script_six.pl
line 90 (#1)
Use of uninitialized value in concatenation (.) or string at perl_script_six.pl
line 91 (#1)
suse-linux:/usr/perl #



Jetzt versuch ich mal und guck was sonst noch passiert ist - ob eine Datei angelegt wurde und so weiter.


Also es hat eine 14MEG große XML-Datei angelegt. Das ist großartig. Ich bin begeistert. Werde dir später zu den Ergebnissen und darüber hinaus noch einiges schreiben. Ich bin total begeistert - ehrlich. Du hast ja im Grunde - soweit ich weiß - die Aufgabe gar nicht von Anfang an gekannt. Sondern du hast allein das Script als Ausgangslage gehabt.

Ich werd dazu später noch was schreiben.


Als ich das Script vorhin nochmals laufen hab lassen hat es wieder eine halbe Stunde gearbeitet ehe ein Abbruch kam. Guck dir das mal an - das sieht nach einem etwas anderen Abbruch aus....
Quote

htmlfiles/einzelergebnis987b-2.html!
Bearbeite nun datei: htmlfiles/einzelergebnise20b.html!
unexpected format: parsing stopped at perl_script_six.pl line 59.
Bearbeite nun datei: htmlfiles/einzelergebnised05.html!
Bearbeite nun datei: htmlfiles/einzelergebnisdec3.html!
Use of uninitialized value in concatenation (.) or string at perl_script_six.pl line 92 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl will try to tell you the
name of the variable (if any) that was undefined. In some cases it cannot
do this, so it also tells you what operation you used the undefined value
in. Note, however, that perl optimizes your program and the operation
displayed in the warning may not necessarily appear literally in your
program. For example, "that $foo" is usually optimized into "that "
$foo, and the warning will refer to the concatenation (.) operator,
even though there is no . in your program.

Use of uninitialized value in concatenation (.) or string at perl_script_six.pl
line 99 (#1)

Wide character in print at perl_script_six.pl line 99 (#2)
(S utf8) Perl met a wide character (>255) when it wasn't expecting
one. This warning is by default on for I/O (like print). The easiest
way to quiet this warning is simply to add the :utf8 layer to the
output, e.g. binmode STDOUT, ':utf8'. Another way to turn off the
warning is to add no warnings 'utf8'; but that is often closer to
cheating. In general, you are supposed to explicitly mark the
filehandle with an encoding, see open and perlfunc/binmode.

Wide character in print at perl_script_six.pl line 90 (#2)
Use of uninitialized value in concatenation (.) or string at perl_script_six.pl
line 90 (#1)
Use of uninitialized value in concatenation (.) or string at perl_script_six.pl
line 91 (#1)
suse-linux:/usr/perl #


ich meld mich wieder. Spätestens im Verlaufe des Dienstags.
An dieser Stelle: Viele Grüße und nochmals vielen Dank!!

Greetz
lin ;-)
Last edited: 2010-10-05 00:32:57 +0200 (CEST)

View full thread I/O Operations: Pfade übertragen auf einen HTML-Parser