Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Problems with matching and metacharacters

by WebHick (Scribe)
on Jun 14, 2001 at 20:35 UTC ( [id://88489]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Problems with matching and metacharacters
in thread Problems with matching and metacharacters

Actually, /(\Q$input)/ produces the error:

/(\(\)/: unmatched () in regexp

because you're now matching $input), not just $input. If the parenthesis are to stay, you'll need the \E

Sarah

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-05-30 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    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.