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


in reply to How to use chmod u +x in perl

Best solution:
use File::chmod qw(chmod); chmod('u+x', 'sample.pdf');