Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Reducing memory usage while matching log entries

by meetraz (Hermit)
on Feb 01, 2006 at 18:15 UTC ( [id://527132]=note: print w/replies, xml ) Need Help??


in reply to Reducing memory usage while matching log entries

BTW, you don't have to track the current line number yourself (or prepend an empty string to your array so it doesn't start with zero).
Just use $. (Yes, dollar sign followed by period) it will contain the current line number of the last read filehandle.
  • Comment on Re: Reducing memory usage while matching log entries

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found