marcpestana has asked for the wisdom of the Perl Monks concerning the following question:
This works but I'd wanted to add some octal constants so I added the following code to the above:package Constants; use base Exporter; @ISA = qw (Exporter); @EXPORT = qw( $var1 $var2); $var1 = \'val1'; $var2 = \'val2';
I included B_OGUS in @EXPORT which returned in proper value in decimal (400) but not in octal. How can I get the value to return in octal so I can use it in chmod? chmod(B_OGUS,$filename); Thank youuse constant B_OGUS => 0620;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: constant issue
by ferreira (Chaplain) on Jan 19, 2007 at 16:38 UTC | |
|
Re: constant issue
by Joost (Canon) on Jan 19, 2007 at 16:38 UTC | |
|
Re: constant issue
by ikegami (Patriarch) on Jan 19, 2007 at 16:46 UTC | |
|
Re: constant issue
by moklevat (Priest) on Jan 19, 2007 at 16:51 UTC |