in reply to Avoiding the "Encountered CODE ref" message when using Data::Dumper

local $Data::Dumper::Deparse = 1;
or
local $SIG{__WARN__} = sub { print(STDERR $_[0]) if $_[0] !~ /^Encountered CODE ref, using dummy placeholder/; };