henrylaxen has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl package one; use Class::Spiffy -base; our @EXPORT = qw(function); sub function { print "Function in package one\n" } package two; @two::ISA = qw(one); print STDERR "Class::Spiffy version is ", $Class::Spiffy::VERSION, "\n +"; print STDERR "Can two function? ",two->can('function'), "\n"; function(); __END__ cd /home/henry/dev/ /usr/bin/perl -w /home/henry/dev/spiffy_bug.pl Class::Spiffy version is 0.15 Can two function? CODE(0x814b738) Undefined subroutine &two::function called at /home/henry/dev/spiffy_b +ug.pl line 12. Compilation exited abnormally with code 255 at Mon Feb 20 13:34:34
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: This can't happen, can it?
by blokhead (Monsignor) on Feb 20, 2006 at 20:57 UTC | |
|
Re: This can't happen, can it?
by Corion (Patriarch) on Feb 20, 2006 at 21:06 UTC | |
by henrylaxen (Novice) on Feb 20, 2006 at 23:12 UTC | |
by QM (Parson) on Feb 21, 2006 at 00:07 UTC | |
by Corion (Patriarch) on Feb 21, 2006 at 07:25 UTC | |
by henrylaxen (Novice) on Feb 21, 2006 at 17:39 UTC | |
|
Re: This can't happen, can it?
by chromatic (Archbishop) on Feb 21, 2006 at 01:54 UTC |