##
#!/usr/bin/perl
use strict;
hash(
uno => 'one',
dos => 'two',
tres => 'three',
);
sub hash {
my $param = @_;
print $param->{uno}, "\n";
}
####
~/programming/perl/oo$ ./test.pl
Can't use string ("6") as a HASH ref while "strict refs" in use at ./test.pl line 7.