Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^7: Parse .csv file from FTP using Perl

by muba (Priest)
on Jun 21, 2012 at 01:53 UTC ( #977532=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Name,Type,Age
    Lily,Cat,4
    Buster,Dog,5
    Tweety,Bird,2
    
  2. or download this
    use strict;
    use warnings;
    ...
         return $result[$row_num - 1];  # -1 since array indexes are 0-bas
    +ed,
                                        # and we count our lines 1-based
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
    
        return $all->[0]->{$field_name}
    }
    
  4. or download this
    The animal in line 2 is 4 years old.
    The critter in line 4 is called Tweety.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2014-11-28 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (194 votes), past polls