Hi Brain,
When i tried $!, i got the below error
[Sat Oct 6 16:56:59 2001] abn.pl: Can't Open the File.
[Sat Oct 6 16:56:59 2001] abn.pl: Not enough space at abn.pl line 6
for the code
$lfile="Z:\\amro\\log\\sar\\pa.txt";
open (FHTML,"< $lfile") || die ("Can't Open the File.\n$!");
But when i have the text file in my local hard disk, it opening
sucessfully.
Thanks
SureshA
[EMAIL PROTECTED]
===============================================================================
The cause of evil is our desire to be superior to others and our
selfishness.
===============================================================================
On Thu, 6 Sep 2001, brian d foy wrote:
> In article <Pine.SO4.4.05.10109070040270.19166-100000@obelix>,
> [EMAIL PROTECTED] (Suresh Babu.A) wrote:
>
> > Hi All,
> >
> > I am unable to open the file, using the below mentioned code.
> >
> > open (FHTML,"Z:\\amro\\log\\va.txt") || die ("Can't Open the File");
>
> make sure you check to see what the error is by inspecting the
> error variable $!
>
> ... die "Could not open file.\n$!";
>
> --
> brian d foy <[EMAIL PROTECTED]> - Perl services for hire
> CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html
> Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]