in reply to Perlcritic and checking file modes

Post your output for this command so we can see your file permissions:
ls -l ./foo.pl

Post your modified code with oct (the code that fails for you).

You can disable this policy in your ~/.perlcriticrc file:

[-ValuesAndExpressions::ProhibitLeadingZeros]

To get a handy reference to the POD for your violation: Sort and summarize perlcritic output