Can't... resist  ...  replying to .... flamebait ...

perl -MDate::Manip -e "print q(bad date) unless &ParseDate( q(
29-Feb-1999 ) )"

I admit to cheating and using a CPAN solution,  but hey that's the idiomatic
way to do it.

I've learned a lot from REBOL about cleaner programming style,  and I've
looked to apply that knowledge back into the perl coding that I do.  Mixing
data and script w/<DATA> and <<here, (de-)serializing data structures with
Data:Dumper and 'do',  using Parse::RecDescent to build grammars, functional
manipulation with map/grep, etc.  Perl supports the same paradigms,  though
some (types esp.) are bolted on a bit more coursely than others.

Anyway,  why not be smart and use both?

John Sequeira
http://www.pobox.com/~johnseq
[EMAIL PROTECTED]

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Vos, Doug
> Sent: Wednesday, December 12, 2001 4:24 PM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Perl is to stupid to understand this 1 liner.
>
>
> I love the simplicity of rebol's interaction with humans.
>
> Many other scripting languages are so dumb,
> you have to get down to the dumb level to understand them...
>
> Example:
>
> try this at the prompt. - Test for leap year
> >> 29-Feb-1999
> ** Syntax Error: Invalid date -- 29-Feb-1999
> ** Near: (line 1) 29-Feb-1999
>
> However there is a leap year in 2000,
> so rebol knows right away what you mean...
>
> >> 29-Feb-2000
> == 29-Feb-2000
>
> >> Can perl do that?
> == NO
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
>

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to