Hi guys, Thank you all for the input and this is a summary email.
Question: How to paste data into a CGI script and then delete empty elements in AoA pasted data format: 1 1 1 2 2 2 3 3 3 expected AoA ([1,1,1], [2,2,2], [3,3,3], ); script/answer: my $cgi=CGI->new(); my $data=$cgi->param('data'); my @data = grep /\S/, split /\r?\n/, param('data'); @data =map [ split],@data; There are several versions on how to remove empty elements in AoA but I just pick up one. Once again thank you very much for the time and the help. Li __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>