Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: trouble parsing log file...

by inman (Curate)
on Nov 20, 2006 at 21:18 UTC ( #585149=note: print w/ replies, xml ) Need Help??


in reply to Re^4: trouble parsing log file...
in thread trouble parsing log file...

The while (<DATA>){ line needs to read

while (<LOG>){

<DATA> file handle is a "special" one that points to the bit in your script following the __DATA__ marker. This is useful to demonstrate the data associated with code in a forum like this.

As suggested by others, it is good practice to close your file handle once you are finished with it.

close LOG;


Comment on Re^5: trouble parsing log file...
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2015-07-04 15:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls