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


in reply to Re^4: How to display the .pl process in command line
in thread How to display the .pl process in command line

Yup

# ... Code ... print "Ok\n"; # ... Code ... print "Error: <insert error message>\n";