Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2016-07-01 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (405 votes). Check out past polls.