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

Re^3: shift implicit dereference

by kcott (Canon)
on Oct 06, 2013 at 19:17 UTC ( #1057185=note: print w/replies, xml ) Need Help??

in reply to Re^2: shift implicit dereference
in thread shift implicit dereference

I get the same results as Sören. I'm using v5.18.1 (darwin-thread-multi-2level).

(MONIKER() => 'Monica') produces 'name' => 'Monica' in the Dumper output.

-- Ken

Replies are listed 'Best First'.
Re^4: shift implicit dereference
by LanX (Chancellor) on Oct 06, 2013 at 19:44 UTC
    or maybe putting in parens is more obvious?

    DB<117> use constant MONIKER =>"name" DB<118> %hash1 = ( (MONIKER) => 'Monica' ); => ("name", "Monica") DB<119> $hash1{ (MONIKER) } => "Monica" DB<142> [map { my $y = uc; ({$y => 1}) } "a".."c"] => [{ A => 1 }, { B => 1 }, { C => 1 }] DB<143> print ((1==0) ? "true" : "false") => 1 false DB<144> sub tst { ${ (shift) } } DB<145> tst \"a" => "a"

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057185]
[choroba]: Most coffees? Depends on the country :-)
[choroba]: oh, you mean a cup with no water.
[Discipulus]: you are rigth, gory details but i remember from dunnowhere that concetrate caffein is more effective than brown water almost coffe..
[LanX]: prepared both kinds a 100 times and thinks the amount of grind code is about the same
Discipulus less effective i mean

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2017-01-16 10:55 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (148 votes). Check out past polls.