in reply to Re^2: Saving Results of a while loop
in thread Saving Results of a while loop
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Saving Results of a while loop
by tadman (Prior) on Aug 01, 2001 at 20:10 UTC |