On Wed, May 22, 2002 at 10:06:39PM -0400, Josh Goldberg wrote:
> I came up with another one.  This also works for values of true other
> than 1.
> 
> if ($a=~tr/.[^0]+/0/c) { do_something(); }

        s/tr/s/, maybe ?

        (the transliterate operator doesn't use patterns, so
        the code above change every instances of '.' by a 0,
        of '[' by a '[' and so on and so forth...)


Joy,
`/anick

-- 
On the whole, human beings want to be good, 
but not too good, and not quite all the time.
                             -- George Orwell

Reply via email to