in reply to Re^2: octal number mysteriously changes after pass to subroutine
in thread octal number mysteriously changes after pass to subroutine

Arguments are received as strings. The second is equivalent to

perl -le '$n="0666"; print $n'
and
perl -le '$n=q(0666); print $n'