Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

RE: grepping for

by Maqs (Deacon)
on May 12, 2000 at 19:11 UTC ( #11288=note: print w/replies, xml ) Need Help??


in reply to grepping for

Why not use simply
if ($url =~ /\/$dir\//) { #... some stuff ...<br> };

IMHO, if you have a long path, your "^" in regexp might not work properly
--
With best regards
Maqs.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11288]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2016-12-11 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.