in reply to File::Find, chmod and warnings
You could use something like
which can take care of octal ("0755"), hexadecimal ("0x1ED") and binary ("0b111101101") input, as well as decimal ("493"). But this doesn't give you the full user-friendliness of the command line tool chmod, which can parse letters combinations along with "+" and "-".$mode= oct($mode) if /^0/;
There's basically two solutions, IMO: either you adopt some code, or a module, that deals with these modes (I'd think of one of tye's brainchildren, I forgot the exact name, but it's a node here), or you call the external program chmod with the passed on data. Not that I'd recommend the latter. Not without proper taint checking. (Is the argument really just an argument?)
|
|---|