Ton Hospel wrote:
>
> Also fun is this:
> 
> perl -wle '$_="abcde"; pos=1; print $& while /.\G./g'
> ab
> bc
> cd
> de
> 
> But I could build nothing useful with that (s/// does not restart)

Here's a fun one I looked at (but same problem):

perl -wle '$_="abcde"; --pos, print $& while /../g'


-- 
Rick Klement

Reply via email to