if($transac eq "parse_now"){ &parse_now; }else{

Do NOT use &subroutine; unless you really do know what it does and really do need that behaviour! You don't and you don't. If you want to call a subroutine with no parameters use subroutine(); or just subroutine;. The & has a very special meaning there.

print " <table border=\"1\" width=\"600\" cellspacing=\"0\" cellpadding +=\"0\"> <tr><form name=\"xmlform\" action=\"get_node.pl\" method=\"GET +\"> <input type=\"hidden\" name=\"transac\" value=\"parse_now\ +"> <td>Check Policies from:&nbsp;&nbsp;&nbsp;&nbsp;</td> <td><div align=\"center\"> <select name=\"get_file_from\">";

Isn't this a bit ... ugly? Things like this may be necessary in C, but definitely not in Perl. Use either the qq{} quote-like operator or heredocs:

print qq{ <table border="1" width="600" cellspacing="0" cellpadding="0"> <tr><form name="xmlform" action="get_node.pl" method="GET"> <input type="hidden" name="transac" value="parse_now"> <td>Check Policies from:&nbsp;&nbsp;&nbsp;&nbsp;</td> <td><div align="center"> <select name="get_file_from">}; #or print <<"*END*"; <table border="1" width="600" cellspacing="0" cellpadding="0"> <tr><form name="xmlform" action="get_node.pl" method="GET"> <input type="hidden" name="transac" value="parse_now"> <td>Check Policies from:&nbsp;&nbsp;&nbsp;&nbsp;</td> <td><div align="center"> <select name="get_file_from"> *END*


In reply to Re: Range File Open by Jenda
in thread Range File Open by Anonymous Monk

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.