On Jul 25, Jeff 'japhy/Marillion' Pinyan said:

>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};

Err, let me clarify:

  print "running from the web!<br>\n" if $ENV{REMOTE_ADDR};

-- 
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]

Reply via email to