in reply to Re: Removing blank lines from arrayin thread Removing blank lines from array
chomp(my @info = grep /\S/, <READ>);
-- Randal L. Schwartz, Perl hacker
chomp(@info = grep /\S/, <READ>);
chomp(my $input = <FOO>);
@info will still be visible after the chomp(). There is no enclosing scope there to cause the lexical nature to release the array.
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (449 votes). Check out past polls.