>
>data pasted into textarea:
>
>1 1 1
>2 2 2
>3 3 3
>
>(each column separated by tab and each row ended with
>\n)
>
>after passed into script and processed the expected
>result is
>my @data=(
> [1,1,1],
> [2,2,2],
> [3,3,3],
> );
>
Hello,
You can do it like:
my $data = $q->param('data'); # here $q is a CGI objective
my @data = map { [split] } split/\n/,$data;
Hope this helps.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>