CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
I'm having trouble with -w

 



DrZed
User

Jun 7, 2000, 7:14 PM

Post #1 of 3 (351 views)
I'm having trouble with -w Can't Post

When I don't include the flag, my cgi runs fine.
#!usr/bin/perl

However, when I use a -w, the program totally hangs. It doesn't generate any error messages, it just performs some endless loop.
#!usr/bin/perl -w

Is there a way of telling what might cause this? I thought that the program would still run the same way under a -w flag, and the only difference would be what's writting into the error log. However, this isn't the case with my program.

Dr. Zed


dws
Deleted

Jun 8, 2000, 10:24 AM

Post #2 of 3 (351 views)
Re: I'm having trouble with -w [In reply to] Can't Post

What happens when you invoke the CGI from the command line (with and without the -w)?



DrZed
User

Jun 8, 2000, 12:37 PM

Post #3 of 3 (351 views)
Re: I'm having trouble with -w [In reply to] Can't Post

Well, that was special. Actually, running it from the command line without the -w was just as expected (a bunch of html being dumped to the screen). Running it with the -w from the command line, and sending the output to a file.... e.g.:
C:\> perl script.cgi > output.txt

.... caused around 100 lines of:
Use of uninitialized value at ....

It's a shame that I can't send this data to an output file, because it scrolls by way too fast. I'll have to attack it from the end and work my way up. I even tried to pipe the output to more, but only the standard output is affected. The warnings are handled seperatly.

Thanks for the tip. At least now I know that I should clean up my code.

Dr. Zed

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives