Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: reading file

by bart (Canon)
on Nov 29, 2012 at 12:31 UTC ( #1006241=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %row;
    while(<>) {
    ...
            or next;
        $row{$key} = $value;
    }
    
  2. or download this
    use Data::Dumper;
    print Dumper \%row;
    
  3. or download this
    # $db is the DBIx::Simple database connection handle object
    $db->insert($table, \%row);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2015-07-28 17:09 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 (258 votes), past polls