Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Problems? Is your data what you think it is?
 
PerlMonks  

Too late for "-T"?

by SilverB1rd (Scribe)
on Feb 07, 2001 at 03:47 UTC ( #56842=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Is this safe??
in thread Is this safe??

I'm working on a new scritp with the CGI stuff and its giving me this error when I run it on my pc that says "Too late for the "-T" option at mailer.cgi line 1." Is this just because on running it on a pc?


Comment on Too late for "-T"?
Re: Too late for "-T"?
by arturo (Vicar) on Feb 07, 2001 at 03:49 UTC

    It's probably because you're running it as

    perl foo.pl

    When the first line of the script looks something like:

    #!c:\perl\bin\perl -T

    Just change the command line to perl -T foo.pl, or execute the script directly (i.e. don't run it through the interpreter on the command line) and you're golden.

    P.S. "P.C." usually refers to the archictecture (i386), I understand you as meaning "Windows," my apologies if that assumption is incorrect.

    HTH

    Philosophy can be made out of anything. Or less -- Jerry A. Fodor

      Thanks that was the problem. And yes I'm running perl in windows.
Re: Too late for "-T"?
by Maclir (Curate) on Feb 07, 2001 at 04:25 UTC
      So far I have this script that just displays all the fields. Now I need to be able to open the template files for the email securly.
      #!/usr/bin/perl -Tw #warnings and taint mode now enabled use CGI; use strict; #you may now use the CGI methods. print "Content-type:text/html\n\n"; print "<html><body>"; my ($query) = new CGI; my (@values, $key); foreach $key ($query->param) { @values = $query->param($key); print "$key = @values\n"; } print "</body></html>";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://56842]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2014-04-21 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls