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

Re: matching a variable containing metacharacter treated as character

by choroba (Bishop)
on Feb 21, 2013 at 16:20 UTC ( #1019975=note: print w/replies, xml ) Need Help??


in reply to matching a variable containing metacharacter treated as character

Use \Q:
grep /\Q$var/, @foos;
See Escape sequences for details.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: matching a variable containing metacharacter treated as character
by docdurdee (Scribe) on Feb 21, 2013 at 16:47 UTC
    Thank you!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019975]
help
Chatterbox?
[LanX]: obviously the message is not clear enough if you only notice the onion now. ...
[Eily]: might have noticed before and forgotten
LanX has ideas for more similar pics
[LanX]: well I gimp ed a while to make it look natural
[LanX]: ... obviously too long
[Eily]: I yes, the natural onion in the flamming eye, I know what you mean
[LanX]: Eily your turn to provide a pic :)
[Eily]: occupe toi de tes oignons
LanX could do a zoom out in animated gif ...
[LanX]: heh

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-12-14 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (398 votes). Check out past polls.

    Notices?