Well, I have to say no and no
my $string = q/This is a test./; my $regex1 = qr(\bis); my $regex2 = qr(is); print $string =~ /$regex1/g, "\n"; print $string =~ /$regex2/g, "\n"; # prints is isis
$ip = qr("192.168.3.5");matches e.g. "192 16833!5" but not what was being looked for. Did you maybe want to use the quotemeta function?? Then
would be the way to go.my $ip = "192.168.3.5"; $ip = quotemeta $ip;
-- Hofmator
In reply to Re3: Saving Results of a while loop
by Hofmator
in thread Saving Results of a while loop
by dru145
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |