Re: Everything is an object.

2002-12-17 Thread Josh Jore
On Wed, 11 Dec 2002, Michael G Schwern wrote: > This is just your friendly neighborhood curmudgeon reminding you that in > Perl 6, everything is an object. This is a concept that, as Perl > programmers, we're not familiar with. Are these objects class based or where do the methods come from? Is

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 })* { p

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 lexic