How do I put something I am looking for, and find, with a reg expression
INTO a variable?
I want to put the IP that the reg exp finds into the $ip variable, and I
can't get it to work. Thanks foryour help!!
Paul
while ($iplist) {
print " this is in the first line: $iplist\n";
if ($true = $iplist =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) {
>>>THIS LINE DOES NOT WORK>>>>>> $ip =
(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/);
print " This is in the ip var: $ip\n";
}
$iplist = <IPLIST>;
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]