Localise Data::Dumper global vars in example
Jess Robinson [Tue, 18 Jul 2006 18:03:26 +0000 (18:03 +0000)]
lib/DBIx/Class/Manual/Cookbook.pod

index 65f802d..e4b9aa1 100644 (file)
@@ -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);