Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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,

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 minor correction, $, is output field serperator, $\ is output record serpperator.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://404967]
[Tanktalus]: What's so happy about it? :P
[Tanktalus]: ww: your parens don't line up. Sure, perl can look like line noise, but the parens still have to line up. ;)
[Tux]: 1nickt did you build 5.24.3, 5.26.1, and 5.27.4 yet?
Tux now has 284 working versions of perl
[1nickt]: Tux oh yes, have filed reports from them already :-)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-09-25 16:34 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (282 votes). Check out past polls.