Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Too little biggy problems

by Hagbone (Monk)
on Aug 01, 2003 at 22:19 UTC ( [id://280176]=note: print w/replies, xml ) Need Help??


in reply to Too little biggy problems

Just a FWIW ... here's something I've used when trying to get the browser to display error messages in situations where my access to tools is limited. I grabbed this from a list/group years ago, and don't pretend to be able to explain the finer points of what makes it tick....

#Put the following code at the top of the script, just below #!/usr/bi +n/perl. #Run the program from your browser, and read what is printed there. BEGIN { local($|) = 1; # Temporarily turn off bufferi +ng print "Content-type: text/plain\n\n"; my $date = localtime; print "Script $0\nrunning on $date (Perl version $])\n\n"; unless (open STDERR, ">&STDOUT") { print "Can't redirect STDERR: $!"; exit; } print "\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-26 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found