in reply to Unwanted Octal to Decimal Conversion
use constant GROUP_READ => 0040;
use constant OWNER_READ => 0400;
my $mask = GROUP_READ | OWNER_READ;
printf "my mask is %04o", $mask;
I recommend "%05o" or "%#04o" because permission are 12 bit long and this way there will always be a preceding zero to indicate octalness.
An Englishman in New York
An American Werewolf in London
An American in Paris
The Innocents Abroad
An Idiot Abroad
Robinson Crusoe on Mars
A Connecticut_Yankee in King Arthur's Court
There and Back Again
Travels into Several Remote Nations of the World
Results (77 votes). Check out past polls.