Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 contemplating the Monastery: (7)
As of 2014-10-25 17:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (146 votes), past polls