in reply to The syntaxes @a->[...] and %h->{...} have now been deprecated
Perl 5.005 doesn't complain at all, but 5.8.0 (rightly) complains about it. Use either arrays (hashes) or array (hash) references, and not some weird mix of the 2.#!/usr/bin/perl -w use strict; my @ary = qw(one two three); my %hash = (one => "One", two => "Two", three => "Three"); print @ary->[0]; print %hash->{one};
Arjen
|
|---|