Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: matching the + character

by jalebie (Acolyte)
on Aug 06, 2001 at 21:48 UTC ( [id://102527]=note: print w/replies, xml ) Need Help??


in reply to Re: matching the + character
in thread matching the + character

I know that thats i even tried matching by setting
use strict; my $var1 = "a+b"; my $var2 = "a\+b"; if ($var1 =~ /$var2/) { print "hey it matches \n"; } print "hey here \n";
but it doesn't work. AGAIN the only thing that works is
$var2 = "a\\+b";
please explain Waris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-19 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found