syntax vs. style

2006-03-26 Thread Will Fould
Hi,I afraid this is a naive question but here it goes:I've fixed a lot of old CGI scripts over the past year and all new stuff to work in our MP2 environment and everything seems to be running excellent -- I mean GREAT, really. We now use:        SetHandler perl-script  

Re: syntax vs. style

2006-03-26 Thread Foo Ji-Haw
I've fixed a lot of old CGI scripts over the past year and all new stuff to work in our MP2 environment and everything seems to be running excellent -- I mean GREAT, really. Yes. I've never looked back myself. :) If you're going all the way into modperl (arguably depending on your needs), yo

Re: syntax vs. style

2006-03-27 Thread Carl Johnstone
Instead of using MP2 syntax, etc, we're still using: print "Content-type: $type\n\n"; print "blah"; and in sending redirects, we use stuff like: print "Location: $url\n\n"; Is this a problem or is it just bad style? What reasons are there to continue our port to use the correct r

Re: syntax vs. style

2006-03-27 Thread Frank Wiles
On Mon, 27 Mar 2006 14:08:38 +0100 "Carl Johnstone" <[EMAIL PROTECTED]> wrote: > The next step from there is not using Apache::Registry at all, but > putting mod_perl handlers into their own modules/packages. However > there's more of a change here to other ways of working - for example > you need

Re: syntax vs. style

2006-03-27 Thread Jonathan Vanasco
On Mar 27, 2006, at 9:42 AM, Frank Wiles wrote: Overall great advice in this thread, but I wanted to point out that with Apache2::Reload this isn't strictly the case. You can set it to reload certain modules or all without a server restart, however I personally wouldn't use it in produc

Re: syntax vs. style

2006-03-27 Thread Will Fould
Thanks guys - this is helpful.In reality, and running the ways things are, I already need to restart (or ::Reload) to introduce changes (moved to that paradigm last year) -- but I guess that beyond the efficiencies you point out here in using proper API (for handler, print, etc) and the rationale h

Re: syntax vs. style

2006-03-27 Thread Foo Ji-Haw
Apache::Reload doesn't always work too. two scenarios ... I use Apache2::Reload myself for my development box. There's an extra scenario you missed out: 1. If you change the inheritance of the package, you'll get an error too. But having said that, I find Apache2::Reload very handy for easy

Re: syntax vs. style

2006-03-27 Thread Jonathan Vanasco
On Mar 27, 2006, at 10:06 PM, Foo Ji-Haw wrote: Apache::Reload doesn't always work too. two scenarios ... I use Apache2::Reload myself for my development box. There's an extra scenario you missed out: 1. If you change the inheritance of the package, you'll get an error too. But having

Re: syntax vs. style

2006-03-28 Thread Carl Johnstone
But having said that, I find Apache2::Reload very handy for easy and quick development. Me too! Although I find that occasionally I have to restart apache on the development box before it'll work correctly. Hence I wouldn't run it on a production server. Carl