mikeprestim
Programmer
Hi
I have an external file from which i need to see if the file contains the chrs $$exp.
My code line is
my $i = system "grep '$$exp' $ARGV[0]";
$i is 0 if true
fails because $exp is not defined, but i do not want to i am checking for an explicit existance of $$exp in an external file. I have tried \$\$.exp $.$.exp
any ideas. Also correct perl syntax of grep would be nice so i do not need to do system
Thanks
Mike
I have an external file from which i need to see if the file contains the chrs $$exp.
My code line is
my $i = system "grep '$$exp' $ARGV[0]";
$i is 0 if true
fails because $exp is not defined, but i do not want to i am checking for an explicit existance of $$exp in an external file. I have tried \$\$.exp $.$.exp
any ideas. Also correct perl syntax of grep would be nice so i do not need to do system
Thanks
Mike