Re: hotplug regexes, other misc regex questions

2002-09-19 Thread Josh Jore
On Wed, 18 Sep 2002, Luke Palmer wrote: On Wed, 18 Sep 2002, Josh Jore wrote: On Wed, 18 Sep 2002, Damian Conway wrote: What possible outputs are legal for this: aaa =~ /( a { print 1 } | a { print 2 })* { print \n } x/ I take it that what I've learned from

Re: hotplug regexes, other misc regex questions

2002-09-18 Thread Josh Jore
On Wed, 18 Sep 2002, Damian Conway wrote: Would it be correct for this to print 0? Would it be correct for this to print 2? my $n = 0; aargh =~ /a* { $n++ } aargh/; print $n; Yes. ;-) Wouldn't that print 2 if $n is lexical and 0 if it's localized? Or are lexicals localized