Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?
[Discipulus]: good morning Corion et ceteri
choroba waves
[Mj1234]: Hello Monks, I have installed Active perl 5.16 and 5.14 but I dont find Devel::GDB package when I try to install through ppm
[Discipulus]: i'v installed ubuntu 16.04lts and i'm quite disappointed: is deadly simmilar to new win osses where you cannot find even simple things...
[Corion]: Hi Discipulus ;)
[Corion]: Mj1234: Maybe Ubuntu didn't package Devel::GDB? In that case, consider using local::lib and install the module from CPAN

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2016-12-07 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (125 votes). Check out past polls.