importer is never calledIt depends on how far the modules follow the common practices (look at their names). Try:
script.pl:
#!/usr/bin/perl use warnings; use strict; use Ugly (); puke('Where does it come from?');
Ugly.pm:
package Ugly; use warnings; use strict; my $package = (caller)[0]; sub puke { warn @_; } { no strict 'refs'; *{$package . '::puke'} = \&puke; } __PACKAGE__
In reply to Re^3: random undefined sub error
by choroba
in thread random undefined sub error
by jerick1976
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |