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

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.

Replies are listed 'Best First'.
Re: Re: Re^2: A Matter of Style in CGI
by rob_au (Abbot) on Sep 13, 2002 at 11:26 UTC
    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.