in reply to searching two files
Hi,
Your comparison operator is wrong...
You should have use the following:
if ( $nameA == $nameB ) { print "$nameA, $machine, $password\n"; }
if ( $nameA =~ m#^$nameB$#) { print "$nameA, $machine, $password\n"; }
Regards,
Gopal.R
|
|---|