in reply to That damn "strict"

I usually start programs in the command line, typing just 'perl' and coding until I press ^D. I got sick of doing use warnings; use strict; all the time so I just did an alias perl='/usr/bin/perl -Mstrict -w'. Whenever I don't want that, it suffices to run /usr/bin/perl.

$ perl print $c; Global symbol "$c" requires explicit package name at - line 1. Execution of - aborted due to compilation errors. $ /usr/bin/perl print $c; $ _

--
David Serrano

Replies are listed 'Best First'.
Re^2: That damn "strict"
by saberworks (Curate) on Sep 21, 2005 at 17:24 UTC
    Once you type "perl" this way and add some commands, how do you tell it to actually run the commands?

      Simple: by hitting Ctrl-D :^).

      --
      David Serrano

        More precisely,
        Ctrl-D at the start of a line (unix), or
        Ctrl-Z followed by Enter (Windows).