Created
October 13, 2017 15:38
-
-
Save richvdh/731dd33d6a5f43f510239e45f68ae1dc to your computer and use it in GitHub Desktop.
Data::Dump modifies its input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use JSON qw(encode_json); | |
use Data::Dump qw(dd); | |
my $a = [1]; | |
my $before = encode_json($a); | |
dd($a); | |
my $after = encode_json($a); | |
die "$before ne $after" if $before ne $after; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment