Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Tuesday December 14, 2004
02:49 PM

$perl =~/(?:strongly|weakly|statically|dynamically) typed/;

[ #22311 ]

Four terms:

  • Strong typing
  • Weak typing
  • Static typing
  • Dynamic typing

I used to think I knew what all of those mean. Now I know I don't. It seems that very few people can agree on the definitions but they're quite happy to argue the merits of them.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I used to believe in strong typing... then my keyboards kept wearing out.
    • Randal L. Schwartz
    • Stonehenge
  • All four terms are a bit murky in Perl.
    • Perl is strongly typed, because there is absolutely, positively no way in Hell you can coerce a hashref into a listref or a coderef.
    • Perl is weakly typed, because you really don't care what happens if you use an integer as a string, or a string as an integer. It all just works.
    • Perl is statically typed because the compiler creates $foo as a scalar variable, and it will always remain so. $foo will never be a list, hash or subroutine.
    • Perl is dynamically typed becaus
  • Don't forget that Perl is also stereo typed, mis typed, and best of all, my type(d).