Why would you need to use the int() function when setting the perms on 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 the int() function?
Edit
Just for completeness, here's the recommendation from perldoc -f chmod ...
$mode = 0644; chmod $mode, "foo"; # this is best