On Jul 25, Daniel Falkenberg said:
>I want to be able to check for errors on my Linux box before I run them
>in a browser. The problem is is tha when I do this all my HTML is
>dispalyed. I don't want to see this I want to be able to just check for
>any errors and display the errors only.
>
>print<<HTML;
>Don't want what's between here to be dispalyed when I run in my shell?
>HTML
The test I usually use to determine whether or not a program is running
from the command-line as opposed to a web browser is:
... if $ENV{REMOTE_ADDR};
If $ENV{REMOTE_ADDR} is true, there's a browser in play (or some evil user
has manually set a REMOTE_ADDR environment variable). It works for all
the cases I've used it.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc. http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter. Brother #734
** Manning Publications, Co, is publishing my Perl Regex book **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]