in reply to •Re: Re: Removing blank lines from arrayin thread Removing blank lines from array
chomp(@info = grep /\S/, <READ>);
chomp(my $input = <FOO>);
-- Randal L. Schwartz, Perl hacker
@info will still be visible after the chomp(). There is no enclosing scope there to cause the lexical nature to release the array.
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (167 votes). Check out past polls.