I'm trying to call a perl script within a perl script...but I want to loop this process by calling this script for values stored in an array (I'm basically getting the names of all the files within /home/com/begp/testinvs and storing them in an array as I want to run the script using these filenames as arguments).
Here is my code:
opendir(TIDIR, $dirtoget) || die("Cannot open directory");
foreach $f (@thefiles)
unless ( ($f eq ".") || ($f eq "..") )
`perl /home/com/begp/test_script.pl` $f || die "Error!"; #This line se
+ems to be giving me errors...I'm not sure my syntax is correct here.
Thanks very much!