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

Re: [MacPerl] Writable file test broken?



So why doesn't -w work?

Stewart

>At 23.51 -0400 1998.09.28, Mat Marcus wrote:
>>When I use the '-w' file test on a soft-locked file I get back 'true'. What
>>is the recommended way to test mac file writability?
>
>  if (open(FILE, ">$file")) {
>     # $file is writable :)
>  }
>
>--
>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

---
Stewart Leicester      "Ad Astra        StewartL@JenSoft.com
JenSoft Technologies    Per Aspera"     925/551-0130

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