Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-11-30 00:10 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (754 votes), past polls