in reply to How to use variables from other package?
And in your other package:package CNLLog; my $_POST_CONVERSION = "postConversion"; my $_CORRECTIVE_SCRIPTS = "correctiveScripts"; sub postConversion_status { return $_POST_CONVERSION; }
Exporter is a great module, but sometimes people don't want you stepping over their namespaces (functional or otherwise... And I know that you should use @EXPORT_OK, but not everyone does that). So, using fully-qualified function calls can be very useful.use CNLLog; $temp = CNLLog::postConversion_status; print $temp;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to use variables from other package?
by Vennis (Pilgrim) on Apr 28, 2003 at 07:46 UTC | |
by Aristotle (Chancellor) on Apr 28, 2003 at 10:37 UTC | |
by Necos (Friar) on May 01, 2003 at 15:21 UTC | |
by Aristotle (Chancellor) on May 01, 2003 at 20:46 UTC |