in reply to slicing a hash ref
There is no arrow syntax, I'm afraid -- you'll have to deref with the sigil:
print @$hashref{'a','a','b'};If your hashref is the least bit complicated, you'll want to use a block. In fact, you might want to use a block in any case, rather than worry about precedence ...
print @{$hashref}{'a','a','b'}; # @{$hashref{'a','a','b'}} would be dereferencing (as an array) # an element of that arcane structure, a multi-dimensional hash.
print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!
|
|---|