in reply to Re: A Matter of Style in CGI
in thread A Matter of Style in CGI

He does use strict; - it just comes after the comments..

(I was bitten by that in my first glance too as I tend to put the strict line up top below the shebang. I'd put it on the shebang line if that were possible..)

I also much prefer Template Toolkit 2 to HTML::Template - to each his own, so I thought I'd point out the alternative.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re^2: A Matter of Style in CGI
by PodMaster (Abbot) on Sep 13, 2002 at 06:57 UTC
    I'd put it on the shebang line if that were possible..
    perldoc perlrun
    #!/usr/bin/perl -Mstrict -wT

    update:

    Ooooooooooooooooooooh .... *crash*n*burn* ;)(i'd say i was about due for one of these ~ didn't try it)

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.

      No, you cannot do that - The -M option cannot be used in shebang lines as it will generate an error. This option is intended for use only on the command line.

      For example:

      rob@kathmandu:~$ cat test.perl #!/usr/bin/perl -Mstrict -Tw print "foo!\n"; rob@kathmandu:~$ ./test.perl Too late for "-Mstrict" option at ./test.perl line 1.