Subject: | about using $_ and @_ in loading loop |
Hi,
I use Class::C3::Componentised through DBIx::Class.
When I load a component, I have a problem because it rewrite global
variables $_ this is not good but it's not my module... so.
In function _load_components, there is a loop on @_ using $_. I think it
is not a good practice, this loop must be done on a local variable :
Class/C3/Componentised.pm +91 :
$class->ensure_class_loaded($_) for @_;
must be :
my @list = @_;
foreach my $c (@list)
{
$class->ensure_class_loaded($c);
}
Hope this help
Nicolas