in reply to Re^2: the basic datatypes, three
in thread the basic datatypes, three
The scalar is needed in the first example because the array names are in a list context otherwise.my @lengths = scalar @x, scalar @y, scalar @z; # but... my $length_x = @x; my $length_y = @y; my $length_z = @z;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|