Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: framework for data parsing

by Narveson (Chaplain)
on Jun 20, 2008 at 04:26 UTC ( [id://693061]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $TEMPLATE = '@8A6'; # oops, originally posted without the quotes  
    while (<DATA>) {
        my @fields = unpack $TEMPLATE, $_;
     
        # for output try pack or printf
    }
    
  2. or download this
    use DBI;
    my $dbh = ...
    my $sth = $dbh->prepare(
    ...
        # you've got your current record in a hash
        # print it or save it somewhere
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-19 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found