Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Use of uninitialized value $site in concatenation (.) when excute the perl script

by Anonymous Monk
on Sep 02, 2012 at 14:43 UTC ( #991279=note: print w/ replies, xml ) Need Help??


in reply to Re: Use of uninitialized value $site in concatenation (.) when excute the perl script
in thread Use of uninitialized value $site in concatenation (.) when excute the perl script

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>) {


Comment on Re^2: Use of uninitialized value $site in concatenation (.) when excute the perl script
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991279]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-10-25 22:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls