On 16 Mar, 18:30, [EMAIL PROTECTED] (Yitzle) wrote:
> On Sun, Mar 16, 2008 at 12:54 PM, John W. Krahn <[EMAIL PROTECTED]> wrote:
>
> >  >> push @records, %record
> >  > I think you want an array of references, not of hashed themselves.
>
> >  Actually, the hash is converted to a list and that list is pushed onto
> >  the array.
>
> >  John
>
> Darn! I tested it using
> $array[0] = %hash;
> in which case it converts to a scalar, not in the list context of push... 
> Sorry!

Are subs always return references or only for anonymous lists/hashes?


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to