in reply to simple substitution
as suggested by lidden will be fine.If you want to scale up and use the same constant in multiple scripts then you can define the constant (and all common VARS that you scripts) in a file and require that file in you scripts! To illustrate this type the followinguse constant UPPER_LIMIT => 10;
in a file called "ENV.pl"(Please note the 1 thats returned in last line), then in you scripts use$UPPER_LIMIT=10; 1;
This will import the contents of ENV.plrequire "ENV.pl";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: simple substitution
by ikegami (Patriarch) on Nov 02, 2007 at 06:32 UTC |