in reply to making 'use strict' default conflicts with CORE modules/scripts

How do you and your friend typically execute your scripts?

If you execute it like this perl foo.pl, you could enable strict like this perl -Mstrict foo.pl or perl -Mv5.11 foo.pl

That will reduces the amount of boiler plate in the script at the cost of a bit of "boiler plate" when executing

Replies are listed 'Best First'.
Re^2: making 'use strict' default conflicts with CORE modules/scripts
by LanX (Saint) on Dec 12, 2014 at 20:14 UTC
    > How do you and your friend typically execute your scripts?

    that's his use case:

    lanx@lanx-1005HA:~$ export PERL5OPT="-Mstrict -Mwarnings -MData::Dump +-Mfeature=say" lanx@lanx-1005HA:~$ perl say "huhu"; dd [1,2,3] __END__ huhu [1, 2, 3]

    of course he could alias perl to restrict the effect to the interactive shell only, but I'd like to know if PERL5OPT is usuable after all.

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)