Depending on the system, you may NOT have write access to the directory, so you would 
die!!

Wags ;)

-----Original Message-----
From: feliciahk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 17:58
To: [EMAIL PROTECTED]
Subject: open (MYFILE, ">>file_to_append_to.txt") or die "Can't open
$!\n"; # which actually never dies.


From: "Carl Rogers" <[EMAIL PROTECTED]>
To: "shalini Raghavan" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>

> open (MYFILE, ">>file_to_append_to.txt") or die "Can't open $!\n";
>

Strange ! I sees the above openings in almost every script. What I could not
understand is the reason for putting the die statement when the above
statement will never "die". If the file is not there, it will create the
file.

Is there a legitamate reason.

Thank You.




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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]

Reply via email to