![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Why isn't my octal data interpreted correctly?by faq_monk (Initiate) |
on Oct 08, 1999 at 00:20 UTC ( [id://578]=perlfaq nodetype: print w/replies, xml ) | Need Help?? |
Current Perl documentation can be found at perldoc.perl.org. Here is our local, out-dated (pre-5.6) version:
Perl only understands octal and hex numbers as such when they occur as literals in your program. If they are read in from somewhere and assigned, no automatic conversion takes place. You must explicitly use
This problem shows up most often when people try using
chmod(644, $file); # WRONG -- perl -w catches this chmod(0644, $file); # right
|
|