in reply to Re: Static typing is mostly a waste of time
in thread Static typing is mostly a waste of time

Perl's type system is both static and very strong. It just contains very few types - scalar, hash, array, filehandle, code. (And format, but no-one uses it anymore.) You cannot convert between them and they're set at compile time.
That's an interesting assertion...
@a=("abc",1,"42","dolphin"); %b=@a; print "$_,$b{$_}\n" for keys %b;

Replies are listed 'Best First'.
Re^3: Static typing is mostly a waste of time
by dragonchild (Archbishop) on Apr 12, 2005 at 15:47 UTC
    Assignment is also polymorphic. %b (or @b, for that matter) forces '=' to impose list context upon @a. In other words, '=' changes behavior depending on the LHS. It's not type-casting, which is what I meant to say.