G
gstewart
Can some perl god, please highlight the error of my ways?
For some reason the print statement below always returns true, assuming
the first check is valid.
while (<FILE>){
if (/$check/){
my @DETAIL = split(/,/,$_);
my @OTHERDETAIL = split(/:/,$DETAIL[2]);
if ($DHCPDETAIL[3]=="somevalue"){
print "You should only see me after above if statement evaluated";
}
}
It's driving me crazy. Many, many thanks.
For some reason the print statement below always returns true, assuming
the first check is valid.
while (<FILE>){
if (/$check/){
my @DETAIL = split(/,/,$_);
my @OTHERDETAIL = split(/:/,$DETAIL[2]);
if ($DHCPDETAIL[3]=="somevalue"){
print "You should only see me after above if statement evaluated";
}
}
It's driving me crazy. Many, many thanks.