in reply to This can't happen, can it?
Spiffy does weird things like source filtering and adding magic re-exporting to your code, which firstly makes your Perl look like Perl but behave really different, and secondly doesn't seem to work correctly. My guess is that the source filtering does not kick in for package two or is still active, even though you only "requested" it for package one. Try putting the two packages into separate files, or better, stay away from Spiffy.
I just now realized that you're using Class::Spiffy, which supposedly does not do source filtering, so I guess that just the exporting in Class::Spiffy messes up things. Try putting your packages into separate files to see if that improves things.
A third update: blokhead was initially correct. Setting @ISA does not import the stuff, or shouldn't. So you only get inheritance, but you don't get the magic Spiffy auto-exporting of functions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: This can't happen, can it?
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 |