predefined arrays @- and @+ with mod_perl?

2001-10-10 Thread Christoph Bergmann
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

Re: predefined arrays @- and @+ with mod_perl?

2001-10-10 Thread Ilya Martynov
On Wed, 10 Oct 2001 20:17:19 +0200, Christoph Bergmann [EMAIL PROTECTED] said: CB Hi... CB I wonder if there exists the predefined arrays @- and @+ in mod_perl. CB The following lines: CB [..skip..] See 'perldoc perlvar'. AFAIK These arrays should be defined after any successful regexp match

Re: predefined arrays @- and @+ with mod_perl?

2001-10-10 Thread Jim Smith
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

Re: predefined arrays @- and @+ with mod_perl?

2001-10-10 Thread Medi Montaseri
The identifier production in Perl is [a-zA-Z_]\w+ So '-' and '+' are not valid symbols... On Wed, 10 Oct 2001, Christoph Bergmann wrote: Hi... I wonder if there exists the predefined arrays @- and @+ in mod_perl. The following lines: print $_ foreach (@-); print br; print

Re: predefined arrays @- and @+ with mod_perl?

2001-10-10 Thread Jim Smith
On Wed, Oct 10, 2001 at 01:05:18PM -0700, Medi Montaseri wrote: The identifier production in Perl is [a-zA-Z_]\w+ So '-' and '+' are not valid symbols... pp. 667-668, 3rd. Ed. Camel book --jim

Re: predefined arrays @- and @+ with mod_perl?

2001-10-10 Thread Christoph Bergmann
Ilya Martynov wrote: On Wed, 10 Oct 2001 20:17:19 +0200, Christoph Bergmann [EMAIL PROTECTED] said: CB Hi... CB I wonder if there exists the predefined arrays @- and @+ in mod_perl. See 'perldoc perlvar'. AFAIK These arrays should be defined after any successful regexp match (in new