Should I use:It doesn't compile, so I wouldn't use it:-)
if ($remove eq ~ m/^.*\b($remove)\b.*$) { # do stuff here }
Perhaps you meant something like:
if ( m/\b$remove\b/ ) { # do stuff here }
how would I go about generating a random filename?See File::Temp
In reply to Re: Pattern matching || grep -v which logic is better?
by FunkyMonk
in thread Pattern matching || grep -v which logic is better?
by misconfiguration
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |