in reply to Re: Perl, SQLite3, and Parsing the Chatterbox Feed.
in thread Perl, SQLite3, and Parsing the Chatterbox Feed.

I don't see why either of you are using /c. It's definitely not useful, and I suspect it's harmful.

Replies are listed 'Best First'.
Re^3: Perl, SQLite3, and Parsing the Chatterbox Feed.
by parv (Parson) on Feb 15, 2008 at 03:00 UTC

    I am responsible for /c in match condition & simultaneous assignment in while loop (for replied in hurry, misread the /c description). Here is what works ...

    # Without /g, it would be an endless loop for match will # always start at the start of $data. while ( $data =~ m/$parse/g ) { my ( $auth , $text ) = ( "$1" , "$2" ); ... }

    (Circa 2001-2005, there are some examples of XML::(Twig|Simple) use to parse the chatterbox XML around here somewhere.)