Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Change array to tiered hashref - brain teaser

by wrinkles (Pilgrim)
on Aug 08, 2008 at 09:10 UTC ( #703085=note: print w/ replies, xml ) Need Help??


in reply to Re: Change array to tiered hashref - brain teaser
in thread Change array to tiered hashref - brain teaser

BrowserUK, I follow lines 1-3 (except for the ";;"). But I'm not clear on that last statement. Should "pp" print out the hash reference like in your last line? I can't find documentation for that usage, and I can't make my the script print. "print Dumper($href);" works for me.


Comment on Re^2: Change array to tiered hashref - brain teaser
Replies are listed 'Best First'.
Re^3: Change array to tiered hashref - brain teaser
by BrowserUk (Pope) on Aug 08, 2008 at 11:24 UTC
    (except for the ";;")

    Two adjacent semi-colons act exactly the same as a single semicolon. Effectively there is a blank statement (noop) between them.

    The difference is that my REPL accumulates what I type until I finish a line with ;; at which point it executes everything I've typed so far as a single chunk of code.

    Should "pp" ... "print Dumper($href);" works for me.

    pp is just another Dumper()-like routine from Data::Dump.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://703085]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2015-07-28 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls