Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Regex Start Anchor with variables

by jwkrahn (Abbot)
on Oct 05, 2006 at 05:55 UTC ( [id://576473]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( 0 == index $str1, $str2 )
    {
    ...
    {
        print "nomatch\n";
    }
    
  2. or download this
    if( $str1 =~ /^\Q$str2/ )
    {
    ...
    {
        print "nomatch\n";
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found