Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: foreach keys possible using a hash reference?

by gav^ (Curate)
on Jul 04, 2002 at 17:03 UTC ( #179496=note: print w/replies, xml ) Need Help??


in reply to foreach keys possible using a hash reference?

Something like this would do the trick:
foreach (keys %$args) { # do something }

gav^

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://179496]
help
Chatterbox?
Lady_Aleena throws in the proverbial towel.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-04-26 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (469 votes). Check out past polls.