Skip to content

Commit

Permalink
dump($1) still doesn't work [RT#63883]
Browse files Browse the repository at this point in the history
  • Loading branch information
tomill authored and gisle committed Oct 14, 2011
1 parent ebefa82 commit 97119d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/dollar-one.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use strict;
use warnings;
use Test::More tests => 3;
use Test::More tests => 4;

use Data::Dump qw/dump/;

Expand All @@ -9,3 +9,8 @@ if ("abc" =~ /(.+)/) {
is(dump(\$1), '\"abc"');
is(dump([$1]), '["abc"]');
}

if ("123" =~ /(.+)/) {
local $TODO = '$1 still modified by dump itself';
is(dump($1), "123");
}

0 comments on commit 97119d4

Please sign in to comment.