I have been using the exporter module for some time now (as all good Camel-readers do) for exporting my package variables. I have been starting to turn strict on in my code modules, and this is causing me some greif. As we all know, strict wants all variables to be scoped either via 'my' or 'local' or exempted through 'use vars'.
I have found that by declaring a variable i want to export with a 'my' that it no longer exports successfully. This kind of makes sense but I am wondering how to now export variables and use 'strict' at the same time. Is use vars the only way, or is there something fundamental i do not understand about messing around with namespaces?
on a side note, i could find no information on how 'import' actually works or would be implemented.
In reply to use strict and exporting package variables by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |