Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: comparing two values under 'perl -w'

by TheDamian (Vicar)
on Apr 02, 2002 at 22:53 UTC ( [id://156157]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $x =~ $y
    
  2. or download this
        if ($val1 =~ $val2) {...}
    
  3. or download this
        if @array =~ $elem {...}        # true if @array contains $elem
    
    ...
        if $value =~ ('a',/\s/,7) {...} # true if $value is eq to 'a'
                                        #   or if $value contains whitespa
    +ce
                                        #   or if $value is == to 7
    

Log In?
Username:
Password:

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

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

    No recent polls found