Hi!
I'm trying to match a variable containing a $(dollar sign) and it fail, like
$tst="2->DATA$\n";
$tst1='2->DATA$';
if($tst =~ $tst1){print "yes\n"}else{print "no\n"};
These 2 variables are here to represent data capture in 2 files and compare.
How to fix it ???
Thanks in advance for your help
I'm trying to match a variable containing a $(dollar sign) and it fail, like
$tst="2->DATA$\n";
$tst1='2->DATA$';
if($tst =~ $tst1){print "yes\n"}else{print "no\n"};
These 2 variables are here to represent data capture in 2 files and compare.
How to fix it ???
Thanks in advance for your help