in reply to Re^19: can't import using exporter
in thread can't import using exporter
I'm not sure if you are trying to point at a solution or what?
Does Exporter not work for variable names in 6.14? It's documented as supporting them in its pod/manpages, but putting the var in @EXPORT as '$var' and then importing it in another package, doesn't work either in 6.14.
Does it work in your 5.8?
package Debug; {use parent "Exporter"; our $var="foo"; our @EXPORT=qw($foo); } package main; {import Debug; print $var; }' Name "main::var" used only once: possible typo at -e line 10. Use of uninitialized value $var in print at -e line 10.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^21: can't import using exporter
by chromatic (Archbishop) on Mar 24, 2012 at 17:27 UTC | |
by perl-diddler (Chaplain) on Mar 24, 2012 at 22:29 UTC | |
by chromatic (Archbishop) on Mar 25, 2012 at 07:30 UTC | |
by perl-diddler (Chaplain) on Apr 25, 2012 at 21:26 UTC | |
by chromatic (Archbishop) on Apr 26, 2012 at 00:21 UTC | |
by Anonymous Monk on Mar 25, 2012 at 07:23 UTC | |
by perl-diddler (Chaplain) on Mar 26, 2012 at 16:32 UTC | |
by Anonymous Monk on Mar 27, 2012 at 07:30 UTC |