So you define Perl5's types as being scalar, array, hash and few others
Right, these are the user exposed types; strings and integers (PV/IV) are hidden from the user as much as possible, so I don't see them as types in Perl 5. (This attitude is influenced by me not writing any XS code, I think).
No, no coercions occur between any of of those types.
my $scalar = @array; # or my @array = $scalar;
Is that no coercion?
Talking of static vs dynamic typing sounds a lot like talking about strong vs weak typing.
In my book there's a difference: For example the C programming language has static typing (determined at compile time), but weak (you can cast anything to anything else even if it doesn't really makes sense).
But I'm guess I use these words not in the same sense as everybody else does, nor is there any shared consensus on what these things actually mean.
In reply to Re^3: compiling perl scripts aka why is perl not as fast as C
by moritz
in thread compiling perl scripts aka why is perl not as fast as C
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |