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
At 08:34 AM 9/3/2006, you wrote:
> my @data = map [ split ] => split /\r?\n/,
> param('data');
Thanks and I like this syntax. But where can I find
this syntax perldoc?
http://learn.perl.org/beginners-faq #2.7.
Please post all questions to the group, not privately. Thanks.
--
Peter Scott
Paci
A Diumenge 03 Setembre 2006 03:09, chen li va escriure:
> Dear all,
>
> I paste some data into textarea in a CGI script and
> use param('data')to retrieve the data. I want to pass
> the data into an array but what I find is that I only
> one dimensional array. Can someone here give me a
> hand?
>
>
On 09/02/2006 08:09 PM, chen li wrote:
Dear all,
I paste some data into textarea in a CGI script and
use param('data')to retrieve the data. I want to pass
the data into an array but what I find is that I only
one dimensional array. Can someone here give me a
hand?
Thanks,
Li
data pasted into
On Sat, 02 Sep 2006 18:09:10 -0700, chen li wrote:
> Dear all,
>
> I paste some data into textarea in a CGI script and
> use param('data')to retrieve the data. I want to pass
> the data into an array but what I find is that I only
> one dimensional array. Can someone here give me a
> hand?
>
> da
>
>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
Dear all,
I paste some data into textarea in a CGI script and
use param('data')to retrieve the data. I want to pass
the data into an array but what I find is that I only
one dimensional array. Can someone here give me a
hand?
Thanks,
Li
data pasted into textarea:
1 1 1
2 2 2
3 3 3
(each colum