laziness, impatience, and hubris | |
PerlMonks |
Re: Output problemsby SuicideJunkie (Vicar) |
on Dec 07, 2016 at 15:14 UTC ( [id://1177392]=note: print w/replies, xml ) | Need Help?? |
The large amount of commented-out code may be hiding something... I see you have declared @array, but I can't spot where you populate it. It also seems to me that you probably don't want @array anyways, since that implies reading the entire file into memory instead of processing it a line at a time. Replacing @array with my $line = <$ifh> is usually the better approach.
In Section
Seekers of Perl Wisdom
|
|