|
From: Jonathan S. <gel...@ge...> - 2002-01-28 21:39:39
|
On Mon, 28 Jan 2002, Olivier Dragon wrote:
> I would just like to submit a question to everyone to either answer or
> debate.
>
> Would it be a better programming practice to use subroutines instead of
> variables as constants? (As my knowledge of Perl is relatively limited,
> please let me know if this is not backward compatible to 5.004_04)
>
It would be backwardly compatible as far as the Perl interpreter is
concerned but I have grave doubts as to whether using this idiom is going
to address our aims. In the first place I really am not going to be the
one who goes through the code altering the places where these variables
are interpolated into quoted strings, which really would mean assigning
their values to new variables rather than some @{[EMULATE_MATTS_CODE()]}
hack ... and then there is the documentation and the support issues :)
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|
|