Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: CSV to Excel Converter

by graff (Chancellor)
on Aug 28, 2007 at 01:22 UTC ( [id://635460]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $infile = shift;
    usage()  unless defined $infile && -f $infile;
    
  2. or download this
    sub usage {
        print "csv2xls infile [outfile] [subject]\n";
        exit;
    }
    
  3. or download this
        # We store the string width as data in the Worksheet object. We us
    +e
        # a double underscore key name to avoid conflicts with future name
    +s.
        #
        my $old_width    = $worksheet->{__col_widths}->[$col];
    
  4. or download this
    # Very simple conversion between string length and string width for Ar
    +ial 10.
    # See below for a more sophisticated method.
    ...
    
        return length $_[0];
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-23 17:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found