Subject: | stderr vs warn |
Date: | Fri, 30 Apr 2010 10:16:18 +1000 |
To: | bug-Smart-Comments [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
The docs of Smart::Comments 1.0.4 says it prints to STDERR, but if I'm
not mistaken it calls warn(), which makes a difference if warnings are
being trapped etc.
I'm not sure which of warn() or stderr is better. For some GUI stuff I
trap warn to a dialog and might prefer stderr for debugging like
Smart::Comments. Perhaps an option to choose between the two, perhaps
fairly global so as not have to set it in many places.