in reply to Running Perl Scripts From Another Windows/DOS Directory
Another thing to look for is that the backslashes are not messing you about. In ActiveState I always use / inside the script (despite being on Windows).
Try setting the command you are going to execute into a string and printing it
$verbose = 1; ... { my $cmd_str; $cmd_str = "perl c:\\perl\\test.pl"; print "$cmd_str\n" if($verbose); system $cmd_str; }
Untested code
|
|---|