Re: put an array into the 0th element of $self

2007-07-13 Thread Mr. Shawn H. Corey
Dr.Ruud wrote: "Chas Owens" schreef: [put an array @teams into the 0th element of $self] The proper syntax is $self->[0]{teams} = [ @teams ]; That makes a copy. If you don't want that, for example because it could contain millions of items, you can use $self->[0]{teams} = [EMAIL PRO

put an array into the 0th element of $self (was: Re: lost in crazy arrays and hashes)

2007-07-13 Thread Dr.Ruud
"Chas Owens" schreef: > [put an array @teams into the 0th element of $self] > The proper syntax is > $self->[0]{teams} = [ @teams ]; That makes a copy. If you don't want that, for example because it could contain millions of items, you can use $self->[0]{teams} = [EMAIL PROTECTED]; --