in reply to The syntaxes @a->[...] and %h->{...} have now been deprecated
@a = ( 0, 1, 2, 3, 4 ); print 'could ', @a->[2], $/; print 'use ', $a[2], $/; print 'or(bad)', @a[2], $/;
The 'bad' syntax works but gets a single element 'slice' and is in array (not scalar) context which may behave in slightly unexpected ways for which I can not generate a one line example. Same holds for hashes $h{foo} instead of %h->{foo}
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: The syntaxes @a->[...] and %h->{...} have now been deprecated
by sauoq (Abbot) on Jun 11, 2003 at 16:57 UTC |