in reply to check if file is executable by user/group/world?
use Fcntl ':mode'; $file = 'myfile'; $mode = (stat($file))[2]; chmod ($mode | S_IXOTH), $file;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: check if file is executable by user/group/world?
by XooR (Beadle) on Aug 06, 2009 at 18:01 UTC |