Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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?


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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://732206]
[jedikaiti]: Hi Monks
[GrandFather]: HI jedikaiti. Collected more 73p data this morning. Rubbish sky though. Seeing was between 5 and 9 arc seconds FWHM with thin cloud drifting through :(
[GrandFather]: Still, at least some of the images are good enough to get reasonable astrometry. Well, good enough for a good plate solve anyway

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-02-20 20:50 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (302 votes). Check out past polls.