OK, is this any better?:
if (length ($request{'find'}) > 0 ) { $find=$request{'find'}; $replace=$request{'replace'}; while ($line =~ m{(.*)$find(.*)}){ $line = $1 . $replace . $2; } }
Nick
In reply to Re: Passing a regex from a CGI HTML form UPDATE
by Linicks
in thread Passing a regex from a CGI HTML form
by Linicks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |