in reply to Re^3: Why isn't C<use strict> the default?
in thread Why isn't C<use strict> the default?

In what way will "module Main;" differ from just "use strict;", at the top of a script?

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

  • Comment on Re^4: Why isn't C<use strict> the default?

Replies are listed 'Best First'.
Re^5: Why isn't C<use strict> the default?
by TimToady (Parson) on Oct 29, 2004 at 00:26 UTC
    It would also turn on warnings.

    I suppose I should also point out that you can just say

    module;
    which would make your main program an anonymous module. I guess, for that matter, you could also say:
    class;
    and get the same effect. I can just see instructors telling newbies to put that at the beginning of all their "class" assignments.

    Hmm, if you want it even shorter, I bet

    role;
    would even work. Hey, maybe any anonymous declarator should work. How 'bout:
    my;
    :-) * 0.5