Thanks to all who've replied so far! Your comments/opinions are all helping!

However, I've just come across the same situation as before, and I still think it's a memory issue with the server!?!

Situation: library.cgi file contains the usual. One sub is this:

##################################################### sub build_input_textbox{ ##################################################### my ( $INPUT_type,$INPUT_name,$INPUT_value,$INPUT_class,$INPUT_styl +e,$INPUT_js,$INPUT_max_length ) = (shift,shift,shift,shift,shift,shif +t,shift); my $inbox = qq¿<INPUT TYPE="$INPUT_type" NAME="$INPUT_name" ¿; $inbox .= ($INPUT_value ne "") ? qq¿VALUE="$INPUT_value" ¿ : "" ; $inbox .= ($INPUT_class ne "") ? qq¿CLASS="$INPUT_class" ¿ : "" ; $inbox .= ($INPUT_style ne "") ? qq¿STYLE="$INPUT_style" ¿ : "" ; $inbox .= ($INPUT_max_length ne "") ? qq¿MAXLENGTH="$INPUT_max_len +gth" ¿ : "" ; $inbox .= ($INPUT_js ne "") ? qq¿$INPUT_js ¿ : "" ; $inbox .= qq¿ >\n¿; return $inbox; }

At the end of one of my scripts, I have the following:

$my_buttons .= build_input_textbox("hidden","m0","$m0"); $my_buttons .= build_input_textbox("hidden","m1","$m1"); $my_buttons .= build_input_textbox("hidden","do","save"); $my_buttons .= build_input_textbox("hidden","act","$act"); $my_buttons .= build_input_textbox("hidden","site_uid","$SITE_UNIQ +UE_ID"); $my_buttons .= build_input_textbox("hidden","what","new_contact");

Running under strict with fatalsToBrowser etc..., the script does not terminate, there is no error, nothing in the error_log file, $my_buttons has been declared, the values passed ($m0, $m1 etc.) are OK, and the only HTML that's received stops at the <body> tag. Yet if I comment out 5 lines - any 5 lines will do, the script works! Comment out 4 lines, it fails! Blank screen!

Am I really being stupid on this one?!? Could it be something other than a server issue?

From a human point of view, I suppose there is quite a lot going on further up the script. The way I'm doing things is to assign output to $vars, then load a template file and s/<MY_TAG\>/$my_tag/g; substitute the necessary bits. Right or wrong, thats the way I'm doing it!

Hense this is why I think it's a server issue - my code works up to a point. Add a bit more onto the end of a variable, and it fails! :-|

Clues anyone?


In reply to Re: strict, debug and global variables by meetn2veg
in thread strict, debug and global variables by meetn2veg

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.