On Sun, Oct 26, 2008 at 11:35 AM, AndrewMcHorney <[EMAIL PROTECTED]>wrote:

> Hello
>
> Is there a way in Perl to find out why a file failed to open? I am working
> on a script that is opening and reading a lot of files. This script is right
> now being written on a Windows based system.
>
> Andrew
>


print the value of $!
 ie. open ( FH, "<file") or die("failed to open file: $!");

>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>


-- 
[ Rodrick R. Brown ]
http://www.rodrickbrown.com http://www.linkedin.com/in/rodrickbrown

Reply via email to