On Wed, Oct 10, 2001 at 08:17:19PM +0200, Christoph Bergmann wrote: > Hi... > > I wonder if there exists the predefined arrays @- and @+ in mod_perl. > The following lines: > > print "$_ " foreach (@-); > print "<br>"; > print "$_ " foreach (@+); > > print out: > > 10 10 11 > 11 11 11 > > This works _only_ when called via browser under mod_perl. Started from > the shell it prints out nothing (except "<br>") - as expected. > > I use apache 1.3.20, perl 5.6.1 and mod_perl 1.26. > > I've never read about such predefined Arrays - what do they contain and > why are they global?
Do see the perl documentation for details. They are related to regexes and there could be a regex hidden somewhere in mod_perl before your code is executed. That would explain the different behaviors. --jim