in reply to Re: Re: Re: Some suggestions on coding style - a chance to critique
in thread Some suggestions on coding style - a chance to critique
The most obvious problem is interpolation in double-quoted strings.use constant LOG_DIRECTORY => '/foo/bar/baz'; # Equivalent to sub LOG_DIRECTORY () { '/foo/bar/baz' }
Similarly, you can't use LOG_DIRECTORY as the key to a hash, because it's not a C-style preprocessor declaration, but a function declaration.
Just, be careful and know what is happening under the hood.
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re5: Some suggestions on coding style - a chance to critique
by blakem (Monsignor) on Jul 01, 2002 at 21:03 UTC | |
|
Re: Re4: Some suggestions on coding style - a chance to critique
by Anonymous Monk on Jul 01, 2002 at 22:14 UTC |