in reply to Re^2: octal number mysteriously changes after pass to subroutine
in thread octal number mysteriously changes after pass to subroutine
The one embedded in the source code is an octal number string literal to Perl. The other is a string to Perl, as it comes from @ARGV.
If you want to treat incoming parameters as octal, see the oct function.
Updated: s/number string/number literal/, suggested by LanX
|
|---|