in reply to Re^2: Issue with Exporter
in thread Issue with Exporter
@EXPORT hold the symbols that are exported by default when you don't mention explicitly any symbols.
use one; # will import the symbols in @EXPORT
while @EXPORT_OK hold the symbols that can be exported on demand.
use one qw(m1 m2); # m1 and m2 should be in @EXPORT or @EXPORT_OK
Read more about it in the Exporter documentation.
|
|---|