The variable $class contains the name of the current package
How exactly did you inspect the contents of $class? Did you use the debugger or something like Data::Dump, or did you simply print it?
At this point we're just giving educated guesses; I suggest you boil the problem down to a short, runnable example (see http://sscce.org/) that reproduces the problem.
In reply to Re^3: Invoking bless triggers "Can't resolve method ..." error
by Anonymous Monk
in thread Invoking bless triggers "Can't resolve method ..." error
by turkanis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |