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...
|
|---|