Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: matching the + character

by foogod (Friar)
on Aug 06, 2001 at 22:16 UTC ( [id://102539]=note: print w/replies, xml ) Need Help??


in reply to matching the + character

just 'cuz I have time today ... here is what the real code should be...

use strict; my $var1 = 'a+b'; my $var2 = 'a+b'; if ($var1 =~ /$var2/) { print "hey it matches \n"; } print "hey here \n";

the posts above already said why it isnt working ... but now you have code that will actaully work (that is like yours).

- f o o g o d

--- ruining the bell curve for everyone else ---

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found