From: Paul Lalli <[EMAIL PROTECTED]>
> You are asking *us* why Perl can't open the file, before you ask
> *Perl* why it can't open the file.  That is most illogical...
> 
> Your die() message should include the $! variable, which contains the
> last operating system error.  It will tell you why the file could not
> be opened.  Change your die() to:
> 
> die "Cannot open the given file: $!";

You might want to use $^E instead, under some OSes (VMS, OS/2, 
Windows) it contains more details than $!, on other's it's equal to 
$!.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


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


Reply via email to