Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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


Comment on Re: print out keys of hash with carriage returns
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2014-12-26 18:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls