Someone posted this regex question which I can't understand for.

perl -e '$_=abc.eeeee.i;   
s/(\.\w+)?$/.out/;
print;'

the result is: abceeeeei.out

Why is this?Please help explain it.Thanks!


_____________________________________________________________
FREE Email @ Fadmail.com - http://www.fadmail.com

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


Reply via email to