Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
$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 In reply to Re: Re: Re: Re: Quick Dumper
by liz
|
|