develooper Front page | perl.perl6.language | Postings from September 2002

Re: Regex query

From:
Chip Salzenberg
Date:
September 20, 2002 14:37
Subject:
Re: Regex query
Message ID:
20020920213532.GR1125@perlsupport.com
According to David Whipp:
>   (7,8,9) == 3 # true
>   (7,8)   == 2 # true
>   (7)     == 1 # false
>   ()      == 0 # true?

Hell, yes, why didn't I think of that?  This is exactly the same
problem that afflicts Python's tuple syntax!

Larry, I strongly suggest that making () act in any way like []
is a VERY BAD IDEA.
-- 
Chip Salzenberg         - a.k.a.  -        <chip@pobox.com>
         "It furthers one to have somewhere to go."



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About