logo       

Re: [Fwd: Apache::Reload Module]: msg#00163

Subject: Re: [Fwd: Apache::Reload Module]
Steve Hay wrote:
Hi Philippe,

Philippe M. Chiasson wrote:

On Wed, 2003-06-18 at 17:19, Steve Hay wrote:
I've attached a patch for Apache::Reload that makes use of your code to achieve what I'm after. The patch is against the Apache::Reload currently in mp2 cvs. Things to note:

[snip]

Can you instead look at this patch:
http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=105591352209314&w=2

And integrate that into an mod_perl 1 & 2 Apache::Reload instead? I
would rather not have to maintain 2 ever so slightly different versions
of Apache::Reload if that can be avoided.

Done. Attached.

I had to alter the patch that you cited above very slightly: it defers the import of the OK constant until run-time, which made it choke on the bareword OK (since its running under "use strict"). I've therefore pushed the mp1/mp2 conditional stuff inside a BEGIN {} block.

I've also added a couple of extra lines to conditionally setup an undef_func() -- under mp1 it is just Apache::Symbol::undef, under mp2 it will be ModPerl::Util::undef which you suggested in the rest of your mail (below).

The only other thing that I was using from Apache::Symbol was the file2class() function. I've now included that in Apache::Reload itself as module_to_package(), complementing the package_to_module() that it already had.

If this is useful in other places we can add it to ModPerl::Util:: perhaps we should make further subclassing of that namespace.

+use B;
+use Devel::Symdump;

Hmm, do these available for perl 5.005_03? Have you tested with that perl version? mp1 has to support perl 5.005_03 I think. Or was it 5.004?


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe