Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: print out keys of hash with carriage returns

by revdiablo (Prior)
on Nov 03, 2004 at 22:50 UTC ( #405027=note: print w/replies, xml ) Need Help??


in reply to Re: print out keys of hash with carriage returns
in thread print out keys of hash with carriage returns

That is indeed another way to do the same thing, but many argue against using map in void context. In older versions of perl, it was inefficient, because it would build a list of return values. In newer versions of perl, it's just bad style.

  • Comment on Re^2: print out keys of hash with carriage returns

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2021-10-27 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (94 votes). Check out past polls.

    Notices?