Subject: | Carp "bug" |
Date: | Tue, 31 Jul 2007 15:26:52 +0200 |
To: | bug-Class-Accessor [...] rt.cpan.org |
From: | FARKAS Máté <fmate14 [...] gmail.com> |
Hello.
I found a little ,,bug'' in Accessor.pm (version: 0.31),
on line 460:
Show quoted text
> use Carp ();
>
> sub _carp {
> my ($self, $msg) = @_;
> Carp::carp($msg || $self);
> return;
> }
You load Carp *always*! The better way:
Show quoted text> sub _carp {
> my ($self, $msg) = @_;
> require Carp;
> Carp::carp($msg || $self);
> return;
> }
> sub _croak {
> require Carp;
> ...
Best regards,
Máté
--
FARKAS Máté
http://fmate14.try.hu/