Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Modify Data type in CSV

by DrAxeman (Scribe)
on Aug 06, 2005 at 23:05 UTC ( #481566=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $decimal = '1.2foo';
      $decimal = to_decimal($decimal) unless is_decimal($decimal);
    
  2. or download this
    #!/usr/bin/perl
        use strict;
    ...
        @avgsHash{ @cols } = @avgs;  # uses a hash slice to populate %avgs
    +Hash
        print "Col,Avg\n";
        printf("%s,%f\n", $_, $avgsHash{$_}) for @cols;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2023-12-11 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?