Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

copy .csv to .XLSX

by perl101 (Initiate)
on Nov 30, 2012 at 03:11 UTC ( #1006395=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    #!/usr/bin/perl
    ...
     open my $fh, "<", "a.csv" or die "a.csv: $!";
     while (my $row = $csv->getline ($fh)) {
      # do something with @$row
    
  2. or download this
    
     open my $fh_xlsx, ">", "write_to.XLSX" or die "write_to.XLSX: $!";
    ...
     close $fh or die "a.csv: $!";
     close $fh_xlsx or die "write_to.XLSX: $!";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-04-26 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (488 votes), past polls