Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

RE: Re: character classes

by merlyn (Sage)
on Aug 21, 2000 at 07:03 UTC ( [id://28763] : note . print w/replies, xml ) Need Help??

in reply to Re: character classes
in thread charachter classes, and a misunderstanding...

No point in duplicating that tr/// string twice. This will suffice:
$longest = $_ if length == tr/qwertasdfgzxcvb//;

-- Randal L. Schwartz, Perl hacker