Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Substring comparisson problem

by golux (Chaplain)
on Nov 27, 2013 at 19:16 UTC ( [id://1064689]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $string = "Hello World";  
    if ($string =~ /Hello/) { 
        print "Basic String contains: Hello\n"; 
    }
    
  2. or download this
    my $string = "\"Hello\" World";
    
    ...
    my $string = q{"Hello" World};
    
    my $string = qq{"Hello" World};
    
  3. or download this
    if ($string =~ /"Hello"/) { 
        print "Basic String contains: Hello\n"; 
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found