You can use the ref function for that:
use warnings; use strict; package Greetings; { sub new { return bless {}, shift; } } package main; my $obj = Greetings->new; print "object is of " . ref($obj) . " class\n";
Output:
object is of Greetings class
In reply to Re: Moose identify module type
by stevieb
in thread Moose identify module type
by jorba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |