Re: Question regarding file stat setgid determination.

2011-10-31 Thread Igor Dovgiy
Hi Daniel, There's no such thing as boolean literals [true/false] in Perl. ) Remember these weird '1's at the end of .pm files? ) Or constructs like while(1)? ) And frankly speaking, I don't think there's a big need for these literals. Every value (scalar or list, doesn't matter) can be well and

Re: Question regarding file stat setgid determination.

2011-10-29 Thread Anneli Cuss
Two comments: 02000 is 1024 in base 8; the leading 0 indicates octal much as leading 0x indicates hex. $a & $b returns the number with bits in common, so we expect 1024 & 1024 to equal 1024 (or 02000 & 02755, the latter being a realistic file mode; note these are in octal). This will be true in b

Question regarding file stat setgid determination.

2011-10-29 Thread Daniel Patrick Sullivan
HI, All, I am banging my head against the wall on an issue that I think would be pretty simple; I'm trying to determine whether or not the current running script has the SetGUID file mode set on it and it is proving much more challenging than I had originally anticipated. I am using OSX version 1