=head1 VERSION
-Version 0.04
+Version 0.05
=cut
-our $VERSION = '0.04';
+our $VERSION = '0.05';
=head1 DESCRIPTION
my @errs;
my $wrapper = <<" WRAPPER";
- {
return;
package main;
- no indirect hook => sub { push \@errs, [ \@_ ] };
- {
- ;
+ my \$hook;
+ BEGIN { \$hook = sub { push \@errs, [ \@_ ] } }
+ no strict;
+ no warnings;
+ no indirect hook => \$hook;
+ do {
#line 1 "$file"
$src
}
- }
WRAPPER
{
local ($@, *_);
eval $wrapper; ## no critic
- if ($@) {
+ if (my $err = $@) {
require Carp;
- Carp::confess("Couldn't compile the source wrapper: $@");
+ Carp::croak("Couldn't compile the source wrapper: $err");
}
}
L<Perl::Critic>, L<Perl::Critic::Dynamic>.
-L<indirect>.
+L<indirect> 0.20.
=head1 SEE ALSO
=head1 COPYRIGHT & LICENSE
-Copyright 2009 Vincent Pit, all rights reserved.
+Copyright 2009,2010 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.