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 PROTECTED];
Some times you want a copy and some times you want to save time and
space. This also makes a copy.
@{ $self->[0]{teams} } = @teams;
It's important to note that both forms only make top level copies, that
is, only the items in the top level of @teams is copied. If @teams
contain references, then what they refer to is not copied.
--
Just my 0.00000002 million dollars worth,
Shawn
"For the things we have to learn before we can do them, we learn by
doing them."
Aristotle
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/