Re: Scope of Perl Special Variables

2002-05-05 Thread Stas Bekman
Bill Catlan wrote: > Stas Bekman wrote: > > >>This explains why by default %ENV is set for each request afresh. >>http://perl.apache.org/guide/performance.html#PerlSetupEnv_Off > > > Great. Thank you Stas. Now I know /how/ that happens, but I don't know /why/ > the existing inctances' ENV is

Re: Scope of Perl Special Variables

2002-05-05 Thread Mark Fowler
On Sun, 5 May 2002, Jon wrote: > I thought that using 'local' would successfully scope those globals to > within a sub, so you could,k for example, slurp an entire file by doing: > > local $/ = undef; > my $file = ; > > Or am I wrong in that? I use it frequently, and don't seem to have any > t

Re: Scope of Perl Special Variables

2002-05-05 Thread Jon
I thought that using 'local' would successfully scope those globals to within a sub, so you could,k for example, slurp an entire file by doing: local $/ = undef; my $file = ; Or am I wrong in that? I use it frequently, and don't seem to have any troubles. --Jon R. PGP Key fingerprint = 12 DA

Re: Scope of Perl Special Variables

2002-05-05 Thread Bill Catlan
> I thought that using 'local' would successfully scope those globals to > within a sub, so you could,k for example, slurp an entire file by doing: > > local $/ = undef; > my $file = ; > > Or am I wrong in that? I use it frequently, and don't seem to have any > troubles. > > --Jon R. It is my un

Re: Scope of Perl Special Variables

2002-05-05 Thread Bill Catlan
Stas Bekman wrote: > This explains why by default %ENV is set for each request afresh. > http://perl.apache.org/guide/performance.html#PerlSetupEnv_Off Great. Thank you Stas. Now I know /how/ that happens, but I don't know /why/ the existing inctances' ENV is not clobbered. My guess is that a

Re: Scope of Perl Special Variables

2002-05-04 Thread Stas Bekman
Bill Catlan wrote: > Hello, > > The online mod_perl guide > (http://thingy.kcilink.com/modperlguide/perl/The_Scope_of_the_Special_Perl_Va.ht > ml) states: > > "Special Perl variables like $| (buffering), $^T (script's start time), $^W > (warnings mode), $/ (input record separator), $\ (output re

Scope of Perl Special Variables

2002-05-03 Thread Bill Catlan
Hello, The online mod_perl guide (http://thingy.kcilink.com/modperlguide/perl/The_Scope_of_the_Special_Perl_Va.ht ml) states: "Special Perl variables like $| (buffering), $^T (script's start time), $^W (warnings mode), $/ (input record separator), $\ (output record separator) and many more are a