P is for Practical | |
PerlMonks |
Re: Re: Truncating Last Sentenceby Belgarion (Chaplain) |
on May 14, 2004 at 21:15 UTC ( [id://353500]=note: print w/replies, xml ) | Need Help?? |
Actually, s/\.[^.]+$/./; says to match a period followed by one or more non-periods anchored at the end of a line. See perlre for more information.
In Section
Seekers of Perl Wisdom
|
|