Re: join() and split() to respect string overload operations
[email protected] (Zefram)
| Newsgroups | perl.perl5.porters |
|---|---|
| Message-ID | <[email protected]> |
Paul LeoNerd Evans wrote:
> join $sep, @list == reduce { $a.$sep.$b } @list
>
>even in the face of objects with overloads. That doesn't seem too hard.
Reasonable.
>So for this, it would be nice if a split $re, $str could observe some
>magic on the $str object and act accordingly.
You're overcomplicating here.
-zefram