Do not use XX && YY || ZZ when you mean XX ? YY : ZZ, or the day your YY returns false, you will be kicking yourself.($_[0]=~/^(.+[!?.]\s)/s)&&$1||$_[0]
I don't know where this idiom started, but please do not propagate it.
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Truncate a string (news lead?)
by merlyn
in thread Truncate a string (news lead?)
by mountd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |