![]() |
|
more useful options | |
PerlMonks |
Re^2: Word Frequency counterby DrWhy (Chaplain) |
on Oct 02, 2008 at 20:32 UTC ( [id://715090]=note: print w/replies, xml ) | Need Help?? |
Actually, this is related. Anonymous' regex is trying to match against $_, but while loops (and everything else in this code) don't set $_, so it's undefined. If you change the outer while to a for then you have something that sets $_.
Update: Complete gibberish fixed. Now it says what I meant to say --DrWhy "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
In Section
Seekers of Perl Wisdom
|
|