Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: print out keys of hash with carriage returns

by Zaxo (Archbishop)
on Nov 03, 2004 at 18:50 UTC ( #404967=note: print w/replies, xml ) Need Help??


in reply to print out keys of hash with carriage returns

One way is to set the output record field seperator,

{ local $, = "\n"; print RPTOUT keys(%tapeid), "\n"; }
You could instead call join "\n", . . . on the keys.

Update: sth++, corrected.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: print out keys of hash with carriage returns
by sth (Priest) on Nov 03, 2004 at 19:44 UTC

    ...one minor correction, $, is output field serperator, $\ is output record serpperator.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://404967]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2016-12-05 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (89 votes). Check out past polls.