[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Writable file test broken?



At 11.41 -0400 1998.09.29, Stewart Leicester wrote:
>So why doesn't -w work?

I dunno.  But I never use it, as I consider it Not The Best Way.  What do
you want to do with the file?  If you want to open the file for writing,
just do it and check the return value.  There is not much reason to make it
a two-step process, usually.  First, one step is faster than two; second,
something could conceivably happen in between the time you check its
writability and the time you open it, so it is less reliable.

That said, there is a case to be made for -w behaving as you expect it to
here.  Matthias should be back next week (I think), you can ask him then.
:-)

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch