[Dancer-users] why does "warn" fail?
Brian E. Lozier
brian at massassi.com
Sat Jan 22 02:30:35 CET 2011
This is very helpful, thank you.
On Fri, Jan 21, 2011 at 5:16 PM, Fayland Lam <fayland at gmail.com> wrote:
> check environments/development.yml
> On 2011/1/22 9:08, Brian E. Lozier wrote:
>> As a perl veteran I am used to using the built-in "warn" function to
>> write to STDERR. Under mod_perl/Apache this prints to the web
>> server's error log. Using my dancer app like this:
>> plackup -L Shotgun app.pl
>> If I have a "warn" anywhere in my app, I get an error message:
>> Error trace
>> status code needs to be an integer greater than or equal to 100 at
>> line 27
>> However, if I print STDERR "msg"; that works. My question is: what
>> happened to warn? Can it be fixed so that it writes to STDERR instead
>> of triggering an error message?
>> I know about the "warning" function but it's really hard to change 10
>> years of muscle memory!
>> Dancer-users mailing list
>> Dancer-users at perldancer.org
> Fayland Lam // http://www.fayland.org/
> Dancer-users mailing list
> Dancer-users at perldancer.org
More information about the Dancer-users