in reply to access to sub of package
I think that your problem is elsewhere as this works fine for me.
# A.pm package A; sub usage { print "This is usage()\n"; } 1;
#!/usr/bin/perl # A.pl use A; A->usage;
$ ./A.pl This is usage()
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|