Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 imbibing at the Monastery: (11)
As of 2015-07-06 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls