May 29, 2011, 9:06 PM
Post #1 of 3
I am having an issue matching numeric values within a file that was opened. I am trying to match the number 67 against the value ($LastOctet)in the line below:
Trouble Matching numeric value in file
"67 IN PTR tms339.tristan.net." I cant seem to get it to match the number. I have been using:
if ($line =~ m/$LastOctet/)
print "$LastOctet has alread been found in PTR record\n";
I am not getting anything back, $LastOctet equals 67 at that point, so it should match the value of $line within a file.