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];
    }