http://www.perlmonks.org?node_id=1034028


in reply to perl chmod tells me file does not exist (but it does)

It should be:
chmod( oct($perms), $target_file );

stephen

Replies are listed 'Best First'.
Re^2: perl chmod tells me file does not exist (but it does)
by davidfilmer (Sexton) on May 17, 2013 at 22:10 UTC
    Holy crap - is it really that simple and that stupid? I got the args mixed up??? Gaaaa!!!! Thanks!!!!