Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: print out keys of hash with carriage returns

by Zaxo (Archbishop)
on Nov 03, 2004 at 18:50 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://404967]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found