Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: framework for data parsing

by Narveson (Chaplain)
on Jun 20, 2008 at 04:26 UTC ( #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? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2022-12-10 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?