The fastest would probably be:
$text = '' if $text =~ tr/%// > 10;

-ZO

<[EMAIL PROTECTED]> wrote ...

> How would I empty $string if it contained more than ten % characters? In
> other words



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


Reply via email to