Perl: the Markov chain saw | |
PerlMonks |
Re: Iterating and pattern matching on input fileby roboticus (Chancellor) |
on Jul 31, 2018 at 20:06 UTC ( [id://1219596]=note: print w/replies, xml ) | Need Help?? |
Take a look at what the code in your while loop would do for each line of code:
So it looks like you're expecting 'next' to mean "read the next line" instead of "ignore the rest of the loop". I expect you probably want something like:
Update: Pressed "create" just a bit too soon! Update: As AnomalousMonk mentions, it's not adding the count value. ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|