|
From: Olivier D. <dr...@sh...> - 2002-01-28 23:29:53
|
On Mon, Jan 28, 2002 at 06:07:55PM -0500, Joseph F. Ryan wrote: > Secondly, the use of subs to create constants like that is ridiculous. Try > the constant pragma :) > > use constant DEBUGGING => 0; > use constant EMULATE_MATTS_CODE => 0; > use constant MAILPROG => '/usr/lib/sendmail -oi -t'; I wouldn't say that using it is ridiculous to use subroutines to create constants, but this alternative seems reasonable. Is is in the standard library of 5.004_04? Does this integrate in strings as easily as a normal variable, eg. print "Mail program is MAILPROG"; ? In this case it would make this approach much more appealing I think. -Oli -- +----------------------------------------------+ | Olivier Dragon dr...@sh... | | Software Engineering II, McMaster University | +----------------------------------------------+ |