Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Iterating over verbatim hash reference

by AnomalousMonk (Archbishop)
on Jan 21, 2010 at 18:59 UTC ( [id://818792]=note: print w/replies, xml ) Need Help??


in reply to Iterating over verbatim hash reference

There are some things mere mortals are not meant to do.

while(my ($r,$s) = each(%{ {x=>5,y=>8} })) { print($r); };

... is one of them.

>perl -wMstrict -le "while (my $endlessly = shift @{[ qw(but why?) ]}) { print qq{$endlessly...}; sleep 1; } " but... but... but... Terminating on signal SIGINT(2)

... is another.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-19 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found