On Tue, May 31, 2011 at 02:27:53PM +1000, Sayth Renshaw wrote: > This there formula $oct_perm_str = sprintf "%o", $perms; > However it is not working for me. I have used my $oct = sprintf "%0", $number;
You want '%o', the lower case letter o for the sprintf format string, the sample code you showed used '%0' the number. -- Michael mich...@thegrebs.com M: +1-562-MIKEGRB -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/