Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Problem with input strings that have "[]" brackets

by golux (Chaplain)
on May 09, 2015 at 01:36 UTC ( [id://1126161]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $line    = '        [Category("notestrecord")]';
    my $pattern = 'Category("notestrecord")';
    ...
    } else {
        print "No match!\n";
    }
    
  2. or download this
    if (index($line, $pattern) >= 0) { ... }
    

Log In?
Username:
Password:

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

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

    No recent polls found