Hi Kee,
thanks for sharing this. I most cases you can use Apache::Reload. This
modules checks on every request which Perl modules have changed and only
reload the changed ones. You could also tell it, at which modules it should
look. This works not in all cases like your solution (e.g. it doesn't work
when you use pseudo hashs), but normaly it's a great tool.
Gerald
>
> (Quite) a while back I complained about the problems of debugging a
> module that's in use by an Embperl page.
>
> [- use mylib; -]
> ...
> The problem is that Embperl cashes mylib the first time it loads it,
> and then you start getting really random results as you change mylib.
> Some processes have new versions, some have old versions....
>
> Maybe there's a better workaround, but I think I have a solution.
>
> In the embperl file, or even in the library, add the following:
> [- $req_rec->child_terminate(); -]
> That will cause the current apache process to terminate after
> processing this request, thus ensuring that the next time you execute
> a request you'll get a different process that will (assuming it never
> loaded this page before you added that line) have to load the library
> again. That way you can keep editing the library and see the changes
> without having to repeatedly reinitialize the Apache server.
>
> Obviously you should take it out when you're done debugging--the
> effect on performance is noticeable.
>
>
>
> - --
>
> Kee Hinckley - Somewhere.Com, LLC - Cyberspace Architects
> Now Playing - Folk, Rock, odd stuff -
http://www.somewhere.com/playlist.cgi
>
> I'm not sure which upsets me more: that people are so unwilling to accept
> responsibility for their own actions, or that they are so eager to
regulate
> everyone else's.
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
>
> iQA/AwUBOrOFUyZsPfdw+r2CEQKw2wCg0PhsF1KTJldGk7eKtgxhgazhWQgAn2Ca
> zXWKntPDdzbmXBBtZ8jFaLdd
> =/waQ
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]