http://www.perlmonks.org?node_id=311897


in reply to Re: Re: Re: Quick Dumper
in thread Quick Dumper

$obj->dump if $obj->can( 'dump' )

Actually, I wouldn't do that, since you want the debug code removed from your source when running in production. So, by not loading "dump.pm" while in production, your program would bomb because the "dump" method no longer exists, forcing you to either remove or disable the line.

Now, if we would have real assertions, this would be different.

Liz