Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Slicing with Arrow-Operator possible in 5.12?

by haoess (Curate)
on Dec 22, 2008 at 19:31 UTC ( #732177=note: print w/ replies, xml ) Need Help??

Comment on Re: Slicing with Arrow-Operator possible in 5.12?
Re^2: Slicing with Arrow-Operator possible in 5.12?
by LanX (Canon) on Dec 22, 2008 at 22:35 UTC
    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)

      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://732177]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2014-07-30 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (240 votes), past polls