Can anyone tell whether it is valid code
Oh, it's completely valid code. It just doesn't do what you want it to :-)
You need to add
require Exporter;
to one.pm.
It's all very well setting up the @EXPORT variable, but you need to load the Exporter code in order for it to make any difference.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Issue with Exporter
by davorg
in thread Issue with Exporter
by palette
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |