Charles K. Clarkson wrote:
> Ed wrote:
>
> : push( @lineArray, @_ ); <---no it's an array of arrays.
>
> An array of arrays is a short name for an array of array
> references. Array elements can only hold scalar values and arrays
> are not scalars. References to arrays are scalars.
>
> push @lineArray, [EMAIL PROTECTED];
You can't do that because @_ is global so each push references the same array.
> Or:
>
> push @lineArray, [EMAIL PROTECTED];
>
>
> Or bypassing the deprecated form of split():
>
> push @lineArray, [ split ' ' ];
Or just:
push @lineArray, [ split ];
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>