in reply to Or die killing my script
Does anyone have any idea why or die would be affecting my script even if it isn't called?"or die" cannot affect your script if its not being executed.
Why do you have
at the top? Also, why do you sprinkle use lines sporadically around your program? (group them together so they're easy to find).open( STDERR, ">>/home/sulfericacid/public_html/test/error.log" ) or die "Cannot open error log, weird...an error opening an error log +: $!";
I see you have written
That is never good. If you're going to do stuff like that, do it likeopen( SAVED, ">>$localfile" ); # || die $!;
Also, why don't you use CGI::Carp; like it's been suggested often to you.if( open SAVED, ">>$localfile" ) { print SAVED $crack; }
update: I also forgot to ask you (like I did in the CB a few days ago) why do you use warnings and the -w switch? The only reason I could think of is if you don't know the difference, in which case, you should learn the difference.
And oh yea, why aren't you use-ing strict? I can't see why people would continue to help you after you continually ignore the same vital advice time and time again (madness).
update: another question, why print "<br>" if you use CGI ':standard';?
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests. ** The Third rule of perl club is a statement of fact: pod is sexy. |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Or die killing my script
by Juerd (Abbot) on Apr 20, 2003 at 14:07 UTC | |
by PodMaster (Abbot) on Apr 20, 2003 at 14:57 UTC | |
by Juerd (Abbot) on Apr 20, 2003 at 15:08 UTC | |
by jonnyfolk (Vicar) on Apr 23, 2003 at 07:49 UTC | |
by PodMaster (Abbot) on Apr 23, 2003 at 08:09 UTC |