"Ben Tilly" <ben_tilly / hotmail.com> writes:

> The idea is that a tied wrapper around a regular string
> like this should be easy to produce and destroy.  Then
> this lets you be lazy about producing $' and $`, which means
> that if you don't use it you don't pay for it.  Good old
> lazy evaluation. :-)

True 'nuf, but remember. In Ruby, $' and $` are simply aliases to the
pre_match and post_match methods on the MatchData object returned by a 
pattern match. There's no need for ties, as $` and $' are already fetched
by method calls, and hence can be evaluated lazily or whatever.


Regards


Dave