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


in reply to I usually debug via...

For code in development I usually use print.

For code which is already in production I usually use perl -d, so I can make changes during runtime without altering the original code.

I voted for print, since this is what I use more often.