Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Balanced delimiter parsing

by broquaint (Abbot)
on Oct 04, 2002 at 14:58 UTC ( [id://202750]=note: print w/replies, xml ) Need Help??


in reply to Balanced delimiter parsing

If you want to use XML::Parser and it's ilk then you should just download a binary version of it and copy the the right files to the appropriate places. If however, you can't find a binary version of XML::Parser and you really are stuck up the proverbial creek then you might want to check out the extract_tagged method in Text::Balanced. From the docs:
# Extract the initial substring of $text that is bounded by # a C<BEGIN>...C<END> pair. Don't allow nested C<BEGIN> tags ($extracted, $remainder) = extract_tagged($text,"BEGIN","END",undef,{bad=>["BEGIN"]});

HTH

_________
broquaint

Log In?
Username:
Password:

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

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

    No recent polls found