in reply to Re: Why are 5.10's named captures read only?
in thread Why are 5.10's named captures read only?
ISTR (and would expect anyway) that in Perl 6 there's provision for all these kinda things, everything being an object, by means of suitable methods. I suppose that under Perl 5 you would expect yet another pair of special variables instead. But which ones? All of the good ones seem to be gone, and also many of the bad ones!!
Perhaps, since AFAICT %_ is always free, it may have been chosen to hold the named captures instead of %+, and %+ and %- to hold the info you need, for analogy with @+ and @-... Before posting I was also thinking that perhaps %- were free, but it's not the case: it is... "%+ on steroids..."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why are 5.10's named captures read only?
by JavaFan (Canon) on Oct 20, 2008 at 12:14 UTC | |
by blazar (Canon) on Oct 20, 2008 at 12:55 UTC |