to MyConst.pm (just before the Readonly declaration.)our $const1;
Update: To use a variable in another package without requiring a prefix, you would have to import the symbol from the other package. The standard way to do this is to have MyConst be a subclass of Exporter.
In reply to Re^3: how to create a constant file and use it in other file
by pc88mxer
in thread how to create a constant file and use it in other file
by perlfan99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |