Try it this way:
my $cmd = "perl Perl_Ex_1.pl"; system qq[ start /D c:\PerlExamples cmd /k $cmd ];
See start /? at your command prompt for the explanation of /D
In reply to Re: How to execute multiple commands through perl script
by BrowserUk
in thread How to execute multiple commands through perl script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |