From: Jess Robinson Date: Tue, 18 Jul 2006 18:03:26 +0000 (+0000) Subject: Localise Data::Dumper global vars in example X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2213902704bf820f35fa5bcf851e6910bd50ee7d;p=dbsrgits%2FDBIx-Class-Historic.git Localise Data::Dumper global vars in example --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 65f802d..e4b9aa1 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -778,7 +778,7 @@ dumping it. For example, use Data::Dumper; - $Data::Dumper::Freezer = '_dumper_hook'; + local $Data::Dumper::Freezer = '_dumper_hook'; my $cd = $schema->resultset('CD')->find(1); print Dumper($cd);