in reply to Re^5: Howto include Perl Script into CGI script
in thread Howto include Perl Script into CGI script

Hi wfsp,

Thanks for the reply. I followed your suggestion. However I received this message.
$ perl -c price.cgi Too late for "-T" option at price.cgi line 1.
What's the meaning of it?

Regards,
Edward

Replies are listed 'Best First'.
Re^7: Howto include Perl Script into CGI script
by Asim (Hermit) on May 17, 2006 at 16:57 UTC

    The error/issue usually arises when you trigger Tainting on the top (shebang) line (#!/usr/bin/perl -wT), but are running the program/script via the perl interpreter on the command line (as you mention above).

    If you do, Perl sees that you want to use Tainting from the first line, but because of the way you called it, it can't. So add -T to the command line call, as well:

    perl -cT  price.cgi

    See if that doesn't help.

    ----Asim, known to some as Woodrow.