Re: Accessor methods ?

2002-05-19 Thread Larry Wall
Aaron Sherman writes: : > Alternately, I think we should be able to mark subs as 'final' or 'inline' : > to indicate our guarantee that they won't be modified. Of course, it'll : > conflict with auto memoizing or auto currying modules that'd want to : > override it, but that's their fault. :) : :

Re: Using closures for regex control

2002-05-19 Thread Larry Wall
Me writes: : [modified repost due to warnock's dilemma] : : Would something like these DWIM? : : # match pat1 _ pat2 and capture pat2 match: : / pat1 { ($foo) = / pat2 / } / Yes, though I think we'll see people doing it more like this: / pat1 ( pat2 ) { $foo = $-1 } / We might al