Subject: | bad regexp in Data::Dumper::Simple |
Date: | Thu, 12 May 2011 18:40:51 +0800 |
To: | bug-Data-Dumper-Simple [...] rt.cpan.org |
From: | Liu Yubao <yubao.liu [...] gmail.com> |
Distribution name and version: Data-Dumper-Simple-0.11
Perl version: 5.10.1 on Debian Squeeze
In Data/Dumper/Simple.pm:
FILTER_ONLY executable =>
sub { # not using code due to a possible bug in Filter::Simple
s{
$DUMPER_FUNCTION\s*($PAREN_LIST|$ARG_LIST)
~~~~~~it should begin with "\b", else it replaces valueDumper() in the
example below.
An example script to trigger the bug:
use strict;
use warnings 'all';
use Data::Dumper::Simple;
my $valueDumper = sub { };
&$valueDumper(5);
$ perl t.pl
Global symbol "$value" requires explicit package name at test.pl line 7.
Execution of test.pl aborted due to compilation errors.