Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Problem with Text::Balanced

by nardo (Friar)
on Apr 25, 2001 at 21:12 UTC ( [id://75541]=note: print w/replies, xml ) Need Help??


in reply to Problem with Text::Balanced

You are using q/{}'"/ for your delimiter. This is incorrect, the quotes around "value" are not a delimiter, only the braces are.
extract_bracketed($css, '{}')
should work for you. Note that you really only need '{' or '}' as the delimiter, I just happen to find '{}' more legible.

Replies are listed 'Best First'.
Re: Re: Problem with Text::Balanced
by darobin (Monk) on Apr 25, 2001 at 21:28 UTC

    Yes I do need the " and ' because those must be balanced too. I don't want { "}" } to do the wrong thing. Quotes must be balanced here too, and yes } can happen between quotes on the rhs.

    In any case, taking away the quotes doesn't change anything. It's in the way Text::Balanced handles \n somehow, I'm nearly there.

    -- darobin -- knowscape 2 coming soon --

Log In?
Username:
Password:

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

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

    No recent polls found