Re: sorting subroutine and global variables

2000-12-21 Thread Stas Bekman
On Thu, 21 Dec 2000, Alexander Farber (EED) wrote: > Stas Bekman wrote: > > On Wed, 20 Dec 2000, Alexander Farber (EED) wrote: > > > > > > sub mysort > > > { > > > my $param = $query -> param ('sort') || 'MHO'; # XXX global $query, > > ># not

Re: sorting subroutine and global variables

2000-12-21 Thread Alexander Farber (EED)
Hi, thanks for your reply, Stas Bekman wrote: > On Wed, 20 Dec 2000, Alexander Farber (EED) wrote: > > > > sub mysort > > { > > my $param = $query -> param ('sort') || 'MHO'; # XXX global $query, > ># not mod_perl clean? > > return $a -

Re: sorting subroutine and global variables

2000-12-20 Thread Stas Bekman
On Wed, 20 Dec 2000, Alexander Farber (EED) wrote: > Hi, > > http://perl.apache.org/guide/perl.html#my_Scoped_Variable_in_Nested_S > advises not to use external "my $variables" > from subroutines. I have > the following subroutine in my CGI-script, which I would like to keep > mod_perl-kosher, j

sorting subroutine and global variables

2000-12-20 Thread Alexander Farber (EED)
Hi, http://perl.apache.org/guide/perl.html#my_Scoped_Variable_in_Nested_S advises not to use external "my $variables" from subroutines. I have the following subroutine in my CGI-script, which I would like to keep mod_perl-kosher, just in case: