Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Slicing with Arrow-Operator possible in 5.12?

by LanX (Chancellor)
on Dec 22, 2008 at 22:35 UTC ( #732206=note: print w/replies, xml ) Need Help??


in reply to Re: Slicing with Arrow-Operator possible in 5.12?
in thread Slicing with Arrow-Operator possible in 5.12?

Thanks!

Unfortunately there seem to be a compability conflict with hashes. For isntance $hr->{qw/this that/} already means $$hr{join $;,qw/this that/} !

That's an old feature (perl4 ?) for multidimensional hashes $hash{"this","that"}!

(for more see documentation for $; in perlop)

Replies are listed 'Best First'.
Re^3: Slicing with Arrow-Operator possible in 5.12?
by dragonchild (Archbishop) on Dec 23, 2008 at 17:40 UTC
    You're looking for @{$hr}{qw/this that/}

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://732206]
help
Chatterbox?
and God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2016-12-05 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (82 votes). Check out past polls.