in reply to grepping for
That probably isn't the fastest or most efficient way to do it, so you may want to tune the code if this is something that you will do often.use URI; my $dir='acm'; ...looping through the file ...$foo contains the URL from the logfile my $u=new URI($foo); if($u->path()=~/^\/$dir\//){ .. do stuff in here 'cause we got an "/acm/" line }
|
|---|