Is there a clean way to share data from class in a role?
If it was an object method I would probably set up attribute for that, but it's a class method.


package FN::Utils;

use Moose::Role;

# class method
sub some_db_op {

need $TABLE from consuming class here

}

package FN::User;

use Moose;
with qw(FN::Utils FN::Contact);

my $TABLE = 'fnuser';

.....

tx,

Dmitri

Reply via email to