in reply to Re: Initialization of arrays
in thread Initialization of arrays
You can rewrite it like this:
for my $y (0..@x)
You mean:
for my $y (0..$#x)
|
---|
Replies are listed 'Best First'. | |
---|---|
(digression) preferred syntax for index of last array element?
by radiantmatrix (Parson) on Sep 22, 2005 at 14:28 UTC | |
by ikegami (Patriarch) on Sep 22, 2005 at 14:39 UTC | |
by ambrus (Abbot) on Sep 23, 2005 at 16:24 UTC |