package one; @ISA = qw(Exporter); @EXPORT = qw(method1); sub method1 { print "method1 greets hello"; } 1;
use one; print "its here"; method1; print "here";
While trying to execute two.pl I am able to see only the following output "It's herehere". Why is the print statement inside the function method1 not displayed. Please correct me if there is any mistake.
In reply to Issue with Exporter by palette
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |