[Israel.pm] mod_perl 2 newnie question

Issac Goldstand margol at beamartyr.net
Sat Jan 10 09:02:22 PST 2004


Apologies - it's an Apache::RequestRec - Apache::Request has apparently been
deprecated.  But the idea of "include"ing the different perl modules
(similar to .h files) is correct.

  Yitzchak

----- Original Message ----- 
From: "semuel" <semuel at semuel.co.il>
To: <perl at perl.org.il>
Sent: Friday, January 09, 2004 2:38 PM
Subject: [Israel.pm] mod_perl 2 newnie question


> Hello There.
>
>
>
> Here is a code from the mod_perl documentation.
>
> The question is: what is $r? I've seen it being used as if it's all the
> objects.
>
> In the example below, is $r Apache::RequestRec or Apache::RequestIO?
>
>
>
> Semuel
>
>
>
> --- Start Example ---
>
> package MyApache::Deparse;
>
> use strict;
>
> use warnings;
>
> use Apache::RequestRec ();
>
> use Apache::RequestIO ();
>
> use B::Deparse ();
>
> use Apache::Const -compile => 'OK';
>
> sub handler {
>
>      my $r = shift;
>
>      $r->content_type('text/plain');
>
>      $r->print('sub handler ', B::Deparse->new->coderef2text(\&handler));
>
>      return Apache::OK;
>
> }
>
> 1;
>
> --- End Example ---
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://www.perl.org.il/mailman/listinfo/perl
>
> YAPC::Israel::2004
> http://www.perl.org.il/YAPC/2004/
>




More information about the Perl mailing list