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

Re^3: Column Heading and Split Function

by McA (Priest)
on Mar 28, 2013 at 17:46 UTC ( #1026009=note: print w/replies, xml ) Need Help??

in reply to Re^2: Column Heading and Split Function
in thread Title of Column and Split Function

One more reduction and we have to put this node into Obfuscation... ;-)

But while thinking it's interesting it deserves a ++


  • Comment on Re^3: Column Heading and Split Function

Replies are listed 'Best First'.
Re^4: Column Heading and Split Function
by hdb (Prior) on Mar 28, 2013 at 18:52 UTC
    <DATA>; # remove header line $/=undef; # instead of File::Slurp my %rates = split /\s+/, <DATA>; print map { "$_ $rates{$_}\n" } keys %rates; __DATA__ Patient Heart Rates Molly 70 Glenn 69
      $. > 1 and say join ' ', split while <DATA>;
        holy moly... ;-) (yes, yes, also a ++)
        <>; say <>;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026009]
[ambrus]: Corion: nah, cairo also has postscript output, but I think even for the postscript output device, the starting coordinate system is lower values at top
[ambrus]: (cairo supports arbitrary affine transformations of the coordinate space, so you can use an upside down system easily)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2016-12-09 11:22 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (150 votes). Check out past polls.