James Edward Gray II wrote:

>On Feb 17, 2004, at 3:13 PM, Jan Eden wrote:
>
>>
>> Rob Dixon wrote:
>>>
>>>  my @data = map { tr/%//d; [split] } split /\n/, $str;
>>>
>>
>> A little late maybe, but...
>>
>> Why do you have the second (in the order of operation) split operator 
>> in brackets? Shouldn't it just split $_ on whitespace if no arguments 
>> are given?
>
>The brackets create an array reference and fill it with the contents of 
>the second split.  One array ref per line of the original split.  Rob 
>is building an array of arrays here, with plenty of shortcuts.  ;)  
>Make sense?
>
It does. I naively assumed we were talking about a simple array @data here. Thank you!

- Jan
-- 
The day Microsoft makes something that doesn't suck is the day they start selling 
vacuum cleaners.

--
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