Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Simple parse of text file to csv

by Tux (Monsignor)
on Dec 19, 2012 at 07:19 UTC ( #1009516=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $csv = Text::CSV_XS->new ({ binary => 1, auto_diag => 1, eol => "\n
    +" });
    $csv->print (*STDOUT, \@keys);
    $csv->print (*STDOUT, [ map { "@$_" } @values{@keys} ]);
    
  2. or download this
    Host,Kernel,Version,"Hot fixes","Enabled Features"
    NetDevice1234,"Linux 2.6.18-164.11","Driver 23.4.1 333.0 Hotfix BLD Ed
    +ition","HF372590 HF372804 HF372864","FTP HTTP SMTP Active Directory"
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-07-06 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (84 votes), past polls