On 7/13/07, Inventor <[EMAIL PROTECTED]> wrote:
snip
$self->[0]{'teams'} = @teams;
and
@self->[0]{'teams'} = @teams;
but when I try to access the array with
foreach $team ($self->[0]{'teams'}) {
print $team.' ';
}
or
foreach $team (@self->[0]('teams')) {
print $team.' ':
}
i get nothing printed.
The proper syntax is
$self->[0]{teams} = [ @teams ];
for my $team (@{$self->[0]{teams}}) {
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/