Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Putting files in an Array

by Kenosis (Priest)
on Jul 11, 2012 at 15:48 UTC ( [id://981175]=note: print w/replies, xml ) Need Help??


in reply to Putting files in an Array

My text file looks something like this... (only IP addresses shown)

Perhaps I'm missing something, but you push a line onto an array if($_ =~m/head/), but there's no such match in the lines you've shown, so none of those IPs would end up in the array. Were you, in fact, only interested in those lines with "head" in them?

Update: Ken was much faster at this observation...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found