|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re^2: Use of uninitialized value $site in concatenation (.) when excute the perl scriptby Anonymous Monk |
| on Sep 02, 2012 at 14:43 UTC ( #991279=note: print w/ replies, xml ) | Need Help?? |
|
And, foreach my $line (<LOGFILE>) reads the whole LOGFILE straight into memory before starting to enumerate through the lines. (Unless Perl has special-case handling for that case. Which I don't recall Perl having.) The OP should use the iterator form: while (my $line = <LOGFILE>) {
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||