in reply to problem referencing global variable in self-written module
But nowhere do you tell it *what* to export.use Exporter;
Or better:@EXPORT = qw( $fleece );
This would be slightly better since users would have to specifically ask for $fleece to get it:@EXPORT_OK = qw( $fleece );
It's considered good form to not clutter of someone's namespace recklessly. I'd suggest a read of the Exporter Documentation would help you understand all this a little better. HTH, Jeffuse Fleece qw( $fleece );
|
|---|