On 8/23/07, Jeff Pang <[EMAIL PROTECTED]> wrote:
> why it need prototype in mp1's method handler?
Subroutine attributes did not exist before perl 5.6.
- Perrin
2007/8/24, Perrin Harkins <[EMAIL PROTECTED]>:
> On 8/21/07, Jeff Pang <[EMAIL PROTECTED]> wrote:
> > >PerlHandler Package::Name
> > >
> > >instead of:
> > >
> > >PerlHandler Package::Name->handler
> > >
> >
> > So on the first case,we need to write the handler as
> > sub handler { my $r = shift; .
On 8/23/07, Foo JH <[EMAIL PROTECTED]> wrote:
> I've read http://perldoc.perl.org/attributes.html about attributes, but
> it does not seem to suggest that tagging the method attribute to
> subroutine has any programming advantages, unless you're interested to
> list the subroutines with that attrib
Hello Perrin,
I'm interested in how you defined your handler with the 'method' attribute:
sub handler : method {
...
I've read http://perldoc.perl.org/attributes.html about attributes, but
it does not seem to suggest that tagging the method attribute to
subroutine has any programming advantage
On 8/21/07, Foo JH <[EMAIL PROTECTED]> wrote:
> Are there any technical advantages with either method, or is it a
> TIMTOWDI option given to the developers?
You can structure your code differently with method handlers, in ways
that appeal to some people. There's an example here:
http://modperlboo
On 8/21/07, Jeff Pang <[EMAIL PROTECTED]> wrote:
> >PerlHandler Package::Name
> >
> >instead of:
> >
> >PerlHandler Package::Name->handler
> >
>
> So on the first case,we need to write the handler as
> sub handler { my $r = shift; ...}
> because Apache may call the function directly as Package::Nam
Dan King wrote:
> I guess mod_perl doesn't take the environment variables from the server so
> you have to set them in the httpd.conf file. The code I used to fix it is
> below:
That's not exactly true. From the mod_perl docs:
However, Apache (or mod_perl) don't pass on environment variables
Hi everyone,
Thanks for everyones help and suggestions. I found the problem with the special
characters. I guess mod_perl doesn't take the environment variables from the
server so you have to set them in the httpd.conf file. The code I used to fix
it is below:
PerlSetEnv NLS_LANG AMERICAN_AMER
I could never install Apache2::Request successfully.
I'm running RH Linux as4,2.6.9 kernel.
2007/8/23, Manoj Bist <[EMAIL PROTECTED]>:
> Hi Jon,
>
> Which OS platform are you working on?
>
> On platforms like ubuntu linux you can get precompile packages for all
> these modules.
> You just need to