I am writing a script which prints a bunch of HTML on the fly. Part of what I am printing out to the browser is a drop down box.

.......

print"<SELECT NAME=reason>"; print"<OPTION SELECTED>- - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - -"; print"<OPTION>Deposits"; print"<OPTION>PPV Dispute"; print"<OPTION>Misquoted by sales"; print"<OPTION>Rate Increase"; print"<OPTION> Collections -- Write Off"; print"<OPTION> Misapplied Payment\n"; print"<OPTION> CSAP"; print"<OPTION> Trip Charge"; print"<OPTION> Refund Checks"; print"<OPTION> Customer Complaint"; print"<OPTION> Technical Issues-Installs\/Upgrades"; print"<OPTION> Non-Pay Issue"; print"<OPTION> EZ-Pay Issue"; print"<OPTION> Collections - NPD\n"; print"<OPTION> Telephone Slamming Investigation"; print"<OPTION> Technical Issues"; print"<OPTION> Campaign Not Applied"; print"<OPTION> Equipment Charges\n"; print"<OPTION> Customer Not Understanding Billing"; print"<OPTION> Not Receiving Bill In The Mail"; print"<OPTION> Wrong Mailing Address"; print"<OPTION> Wanting Payment Arrangements"; print"<OPTION> Disputing Non Pay Fee"; print"<OPTION> 3.99 Processing Fee (New England)"; print"<OPTION> 3.00 Processing Fee\n"; print"<OPTION> MLB Package Autorenewal Dispute\n"; print"<OPTION> Account Verification"; print"<OPTION> Bundling Discount\n"; print"</select>\n"; .......
If I add one more option (no matter what it is) like:
print"<OPTION> Compliment";
I get this error message:
Undefined Subroutine &main::stop called at calltracker.pl line132.
If I remove the added <OPTION> Compliment, it goes back to working.

I understand that the error is probably not in this section of code, but can someone tell me what I should be looking for?

Its driving me crazy!

update (broquaint): added formatting + <code> tags


In reply to Undefined Subroutine by KingNerd

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.