in reply to Multidimensional Arrays
The syntax @array->[0] is unsupported; it was never really intended to work in the first place.
The perldelta that comes with 5.6.1 explains:
I think that your tutorial is somewhat misleading, because you seem to suggest that @array->[0] is a standard idiom.Arrow operator and arrays When the left argument to the arrow operator "->" is an array, or the "scalar" operator operating on an array, the result of the operation must be considered erroneous. For example: @x->[2] scalar(@x)->[2] These expressions will get run-time errors in some future release of Perl.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Multidimensional Arrays
by CharlesClarkson (Curate) on Jun 23, 2001 at 11:14 UTC | |
by Anonymous Monk on Jul 20, 2001 at 01:49 UTC | |
by FlashM (Novice) on Sep 28, 2001 at 03:08 UTC |
In Section
Tutorials