Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 taking refuge in the Monastery: (6)
As of 2024-09-19 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (25 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.