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

open( STDERR, ">>/home/sulfericacid/public_html/test/error.log" ) or die "Cannot open error log, weird...an error opening an error log +: $!";
at the top? Also, why do you sprinkle use lines sporadically around your program? (group them together so they're easy to find).

I see you have written

open( SAVED, ">>$localfile" ); # || die $!;
That is never good. If you're going to do stuff like that, do it like
if( open SAVED, ">>$localfile" ) { print SAVED $crack; }
Also, why don't you use CGI::Carp; like it's been suggested often to you.

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.


In reply to Re: Or die killing my script by PodMaster
in thread Or die killing my script by sulfericacid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.