At 10:58 AM 9/3/2006, you wrote:
> my @data = map [ split ] => split /\r?\n/,
> param('data');
Hi Peter,

Sorry to bother again. What if I have some lines
containing nothing(blank lines) and how do I remove
these lines before using the map function?

I try "chomp $data" but it doesn't work.

my @data = map [ split ] => grep /\S/, split /\r?\n/, param('data');

Please post all questions to the list, not privately.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com/
http://www.perlmedic.com/


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to