Dave Cross: Still Munging Data With Perl: Online event - Mar 27 Learn more

use strict;
sub new {
my ($self, $warnings_ref, @args) = @_;
$self = $self->next::method(@args);
$self->{_warnings_ref} = $warnings_ref;
return $self;
}
sub warn {
my ($self, $msg) = @_;
push @{ $self->{_warnings_ref} }, $msg;
}
*debug = *info = *error = *fatal = *is_debug = sub { 1 };
1;