I am new to Perl and to this forum as well. Just started learning Perl through Teach youself Perl in 21 days. I have installed Perl Express to get work with Perl.

And I am encountering an error while running a sample program on arrays that, "Cannot create file C:\Program Files\Perl Express\Debug\Out10.txt" and not able to run the program that ll take inputs from the user. Other sample programs are running fine. The code is below:

Yes, there exists a Debug folder in Perl Express folder and also there is a Out10.txt file inside that Debug. I am not able to open that txt file. And not able to run my program too. This error happens occasionally while running different sample programs. This seems to be a petty error; not able to figure out what/ why it occurs though.