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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.