package Data::Dumper;
BEGIN {
- $VERSION = '2.140'; # Don't forget to set version and release
+ $VERSION = '2.141'; # Don't forget to set version and release
} # date in POD below!
#$| = 1;
=head1 VERSION
-Version 2.140 (December 30 2012)
+Version 2.141 (January 13 2013)
=head1 SEE ALSO
{
dSP; ENTER; SAVETMPS; PUSHMARK(sp);
XPUSHs(val); PUTBACK;
- i = perl_call_method(SvPVX_const(freezer), G_EVAL|G_VOID);
+ i = perl_call_method(SvPVX_const(freezer), G_EVAL|G_VOID|G_DISCARD);
SPAGAIN;
if (SvTRUE(ERRSV))
warn("WARNING(Freezer method call failed): %"SVf"", ERRSV);
like($dumped_foo, qr/frozed/,
"Dumped string has the key added by Freezer.");
+# test that list-context freeze return doesn't contain the freezer's return
+# value; RT #116364
+like(join(" ", Dumper($foo)), qr/\A\$VAR1 = /,
+ "Dumped list doesn't begin with Freezer's return value");
+
# run the same tests with useperl. this always worked
{
local $Data::Dumper::Useperl = 1;
"Use of freezer sub which returns non-ref worked with useperl");
like($dumped_foo, qr/frozed/,
"Dumped string has the key added by Freezer with useperl.");
+ like(join(" ", Dumper($foo)), qr/\A\$VAR1 = /,
+ "Dumped list doesn't begin with Freezer's return value with useperl");
}
# test for warning when an object doesn't have a freeze()