Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl, SQLite3, and Parsing the Chatterbox Feed.

by pc88mxer (Vicar)
on Feb 14, 2008 at 06:15 UTC ( [id://667882]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $pat     = qr{ .*<author>(.*)<\/author>.*<text>(.*)<\/text }xs;
    
  2. or download this
    my $pat     = qr{ .*?<author>(.*?)<\/author>.*?<text>(.*?)<\/text }xs;
    
  3. or download this
    while ($data =~ m/$pat/gc) {
       my ($auth, $text) = ($1, $2);
    ...
       }
      printf "%s: %s\n\n" , $auth , $text;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-26 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found