On Wed, Nov 25, 2009 at 11:06 AM, John W. Krahn <[email protected]> wrote:

>
> $ perl -le '$_="aXXXb"; print "one word is $1 at $-[0] to $+[0]" while
> /(X*)/g;'
> one word is  at 0 to 0
> one word is XXX at 1 to 4
> one word is  at 4 to 4
> one word is  at 5 to 5
>

Thanks that's so smart~

But I'm still confused since 4 is the end, why still run for the last
step of 5 to 5?

//Fairy

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to