if (@strings){ $re = join "|", map {quotemeta} @strings; } else { $re = undef; } foreach my $line (@file1only) { print unless defined($re) && /$re/; }
In reply to Re: Re: Help with null string behavior in regex?
by Eimi Metamorphoumai
in thread Help with null string behavior in regex?
by McMahon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |