Thinking TMTOWTDI, $last_word = (split( /\s+/, $list ))[-1]
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Match last word in a sentence
by Fletch
in thread Match last word in a sentence
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |