Re: $r-header_only question (feeling a newbie!)

2000-10-03 Thread martin langhoff
martin, check out: http://www.ora.com/catalog/wrapmod/errata/wrapmod.699 Well, I guess fair is fair, the correction for page 146 (unless = if) was there, I should've done my research better ... anyway I do seem to be needing 'use Apache::Constants qw(:common);' to run under strict

Re: $r-header_only question (feeling a newbie!)

2000-10-03 Thread Vivek Khera
"DT" == Drew Taylor [EMAIL PROTECTED] writes: DT after changing "unless" to "if". Can anyone check what Apache defaults DT to if no status code is returned? I'm guessing it's "OK". In perl, if you have no explicit return statement, the last value computed (or returned from another sub call)

$r-header_only question (feeling a newbie!)

2000-10-02 Thread martin langhoff
hi, I've been developing with mod_perl for a while, but, thanks to Richter's Embperl module and the excellent backwards compatibility (regarding CGI.pm) I had never got anywhere near Apache::Request -- for production, that is. Now I have this very silly question, that I've

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread Drew Taylor
martin langhoff wrote: hi, I've been developing with mod_perl for a while, but, thanks to Richter's Embperl module and the excellent backwards compatibility (regarding CGI.pm) I had never got anywhere near Apache::Request -- for production, that is. Now I have this

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread Tim Tompkins
hanks, Tim Tompkins -- Programmer / Staff Engineer http://www.arttoday.com/ -- - Original Message - From: "martin langhoff" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 02, 2000 1:37 PM Subject: $r

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread martin langhoff
... it made no difference ... :( Drew Taylor wrote: I believe all you need to add is "return OK;" after your print statement. Without that, Apache doesn't know what the status of the request should be.

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread Drew Taylor
martin langhoff wrote: ... it made no difference ... :( Drew Taylor wrote: I believe all you need to add is "return OK;" after your print statement. Without that, Apache doesn't know what the status of the request should be. Doh. I missed what Tim caught. I believe Apache will assume

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread Doug MacEachern
On Mon, 2 Oct 2000, martin langhoff wrote: Now shouldn't it be an 'if' instead of an 'unless'? yes, it should be an `if'. your script works fine for me with that change.

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread martin langhoff
Thanks Tim and all, my gathering is that the sample script on page 146 of the Eagle: - needed a 'use Apache::Constants(:common);' line - needed a 'return OK;' line at EOF - had an 'unless' that should've been an 'if'. for-the-record, I did check

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread ___cliff rayman___
doug, lincoln, looks like www.modperl.com needs a link to errata. martin, check out: http://www.ora.com/catalog/wrapmod/errata/wrapmod.699 martin langhoff wrote: Thanks Tim and all, for-the-record, I did check www.modperl.com looking for an errata. marks down for O'Reilly