Hi List, I am trying to grep a variable from a scalar value. Here is the example below.
$var = "mydisk";
$line = "mydisk is bad";
if (grep/\$var/,$line) {
print "disk is not bad";
}
This does not seems to work.
Please help me out in figuring out this.
TIA,
Cheers,
Umesh
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
