in reply to Removing blank lines from array
Then empty lines (with no whitespace) will be skipped, toomy @info = grep { !/^\s*$/ } <READ>; chomp(@info);
Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: Removing blank lines from array
by merlyn (Sage) on Feb 28, 2002 at 16:53 UTC | |
by PrakashK (Pilgrim) on Feb 28, 2002 at 17:26 UTC | |
by merlyn (Sage) on Feb 28, 2002 at 17:32 UTC | |
by rjray (Chaplain) on Feb 28, 2002 at 23:56 UTC |