Re: any guess why the error message



prashant_ec2003@xxxxxxxxx wrote:

one of the lines in my script is
open(FH,"|system(dir) > E:\\a\\temp111.txt");

whenever i run perl <script-name>.it says bad command or file name .

Try typing "system(dir)" by hand at the command prompt.

Do you get the same message?

If so then your problem has nothing to do with Perl.

.