in reply to My habitual errors

In addition to the usual (is that a '(' or a '{'}, my "favorites" are:
#! /user/local/bin/perl use strict; use warnongs;
I have actually threatened to set up a sym-link for  /user -> /usr and portability be hanged. Fortunately the other error is egregious and the Compiler let me know fast. (May be I can set up a vin macro for that....)

----
I Go Back to Sleep, Now.

OGB

Replies are listed 'Best First'.
Re^2: My habitual errors
by Moron (Curate) on Apr 05, 2007 at 15:19 UTC
    If you are in the habit of doing a perl -c before trying to run it, you could alias perl just locally for your username, detect the perl -c and conditionally do your personal error checking and then run the real perl + whatever args after that.

    -M

    Free your mind