colin_e wrote:
Cool. To my (naiive i'm sure) eye this looks just like the behaviour of a brace-delimited
block in a chunk of mainline code, which is what I was hoping/expecting.

(I guess you are talking about lexicaly scoped vars) plus that any globals which in a normal script:


$foo = 5;

will end up in main:

$main::foo

will be nuked as well.

Some examples of good/bad/dangerous things to do in these <Perl></Perl> sections
would be very helpful though. I can imagine for instance that mucking around with
package declarations inside one could make life complicated.

It's more simple than that. don't use <Perl></Perl> sections for anything that you can do from real perl. <Perl></Perl> sections are there only for doing Apache configuration. Anything else, you are on your own. so any example that doesn't deal with Apache config is a bad example.


--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to