Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How to print after using getline_hr (Text::CSV_XS)?

by Tux (Monsignor)
on Nov 09, 2011 at 11:46 UTC ( #937052=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use v5.12;
    use warnings;
    ...
                
        $csv->print (*STDOUT, [ map { $hr->{$_} } @columns ]);
        }
    
  2. or download this
    my @fields = qw( ID NAME INDICATOR VALUE CI_LOW CI_HIGH );
    $csv->print (*STDOUT, \@fields);
    ...
                
        $csv->print (*STDOUT, [ @rec{@columns} ]);
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://937052]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-07-10 03:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls