Why do you need to use the int () function when setting up perms to a file in Perl?
die "blab, blah" if (! chmod(int(0664), $tmp_file));
I can understand the use of oct (), as in the following perldoc example:
$mode = "0644"; chmod(oct($mode), $tmp_file);
but int () function?
Edit
Just for completeness, here's a recommendation from perldoc -f chmod ...
$mode = 0644; chmod $mode, "foo";
source share