10 chop $pat if $pat =~ /\|$/;
14 print "$ARGV\:$.\:$_" if s/\b($pat)\b/#$1#/og;
15 # this variant might useful if the transformation is more complicated
16 # if (/^(.*?)\b($pat)\b(.*)$/o) {
17 # my $head = "$1#$2#";
19 # while (/^(.*?)\b($pat)\b(.*)$/o) {
23 # print "$ARGV\:$.\:$head$_\n";