Lightning flashed, thunder crashed and Daniel Falkenberg <daniel.falkenberg@vin
tek.net> whispered:
| 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.

It depends on what errors you want to check for.  If you want to check for
syntax errors, you can use the -c flag from the command line:

perl -c scriptname.pl

This doesn't actually run the script, it just compiles it and checks the
syntax.  If you want to actually run it, but just not see any output (for
example, if your script is supposed to create a file and you want to be
able to see the file created), you can redirect output to /dev/null in a
form similar to:

perl scriptname.pl >/dev/null

Of course, remember that when you run the script from the command line, it
will have your userid and your privledges.  When it is run from the web
server, it will have the web server's userid and privledges (which is
usually different from your own).

-spp
--
Stephen P Potter                                         [EMAIL PROTECTED]
"You can't just magically invoke Larry and expect that to prove your point.
Or prove that you have a point."        -Simon Cozens
UNIX, Perl, PHP, Web Consulting and Training  http://www.unixlabs.net/~spp/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to