H
Hallvard B Furuseth
Is there a standard way to refer to the current package? It feels a
little strange for code in a class to put its own package name in
quotes. Though I suppose I could do this:
package Foo;
use constant This_class => ref(bless []); # "Foo"
...
if ($val->isa(This_class)) { ... }
little strange for code in a class to put its own package name in
quotes. Though I suppose I could do this:
package Foo;
use constant This_class => ref(bless []); # "Foo"
...
if ($val->isa(This_class)) { ... }