Perl: the Markov chain saw | |
PerlMonks |
Re: first elements in array, split join and sort problemby samurai (Monk) |
on Sep 27, 2002 at 13:18 UTC ( [id://201180]=note: print w/replies, xml ) | Need Help?? |
It looks like one of your $lines is an uninitialized value. You could put in your foreach loop: next unless $line; But that's just ignoring the problem, not fixing it. But since we can't see sample data, it's hard to analyze WHY its uninitialized.
--
In Section
Seekers of Perl Wisdom
|
|