Nathan Wiger <[EMAIL PROTECTED]> writes:
>> Um, what stops open returning undef on failure (and setting $!), so I could do
>> 
>>          $fh = open $filename or die "open $filename failed: $!\n";
>
>Exactly. You don't lose anything because open() will still return "true"
>(a handle) or "false" (undef).

You loose one little thing - you have a new scalar (the handle)

with 

open $fh,$filename

one can re-use an existing thing to which someone else may have a reference.
(Not that that is useful very often.)

-- 
Nick Ing-Simmons

Reply via email to