Re: mod_perl_traps my($var) = '';

2001-02-20 Thread Vasily Petrushin


my ($var) = ('');

Vasily Petrushin
+7 (095) 2508363
http://www.interfax.ru
mailto:[EMAIL PROTECTED]




Re: mod_perl_traps my($var) = '';

2001-02-20 Thread Ken Williams

[EMAIL PROTECTED] (Helios de Creisquer) wrote:
I used at beginning of script:
   ...
   my($var) = '';
   ...
I know this is a little dirty... everyway,
It seems that when mod_perl encouter a 'my' statement,
it doesn't evaluate it again next time the script is executed.



[EMAIL PROTECTED] (Vasily Petrushin) wrote:
my ($var) = ('');



That's not the problem.  See
http://perl.apache.org/guide/perl.html#my_Scoped_Variable_in_Nested_S .
It's a bit long, but thorough.  Especially see "The Remedy" section.


  ------
  Ken Williams Last Bastion of Euclidity
  [EMAIL PROTECTED]The Math Forum