Your first method should work, by the way. Perhaps give us an example line from the log file and what result you get?$dir = "/acm/"; ## avoid worrying about escaping slashes if (m/($dir.*) /) { print "The path is $1!\n"; }
In reply to RE: grepping for
by turnstep
in thread grepping for
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |