holli has asked for the wisdom of the Perl Monks concerning the following question:
The good new with this is, that I see the output of it. The bad news is, there is more than that:package ctest1::View::PDF; use strict; use base 'Catalyst::View'; sub process { print "Content-type: text/plain\n\n"; print "This is a test\n"; return 1; } 1;
Obviously I am missing something, because I expected the output to be just:Content-type: text/plain This is a test HTTP/1.0 200 OK Connection: keep-alive Date: Sun, 26 Feb 2006 17:28:38 GMT Set-Cookie: ctest1_session=1bcd798b2ab2d6805ccbc652c6341e39a97e9ef8; p +ath=/; expires=Sun, 26-Feb-2006 19:28:38 GMT Status: 200 X-Catalyst: 5.65
What am I doing wrong?This is a test
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: creating a Catalyst View component
by rhesa (Vicar) on Feb 26, 2006 at 17:47 UTC | |
|
Re: creating a Catalyst View component
by shenme (Priest) on Feb 26, 2006 at 18:35 UTC | |
by holli (Abbot) on Feb 26, 2006 at 22:19 UTC |