Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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.


Comment on RE: grepping for
Download Code

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 chilling in the Monastery: (7)
As of 2014-12-20 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls