Most of the problems you've encountered regarding this project were well answered in the thread begun with your previous post, Problem printing contents of file.

So, please step back and review the responses previously provided - as a courtesy to PerlMonks... and for the wisdom you'll perhaps be able to absorb with somewhat more diligent effort.

By way of reminder of the information in some of those replies, note that when this code is checked (ie, perl -c scriptname) without "use strict; use warnings" the output is:

perl -c 693525.pl [Mon Jun 23 21:24:06 2008] 693525.pl: Unquoted string "step" may clash + with future reserved word at 693525.pl line 12. 693525.pl syntax OK

and with strict and warnings, this ensues:

~$ perl -c 693525.pl Content-type: text/html <h1>Software error:</h1> <pre>Bareword &quot;step&quot; not allowed while &quot;strict subs&quo +t; in use at 693525.pl line 12. 693525.pl had compilation errors. </pre> <p> For help, please send mail to this site's webmaster, giving this error + message and the time and date of the error. </p> [Mon Jun 23 21:24:48 2008] 693525.pl: Bareword "step" not allowed whil +e "strict subs" in use at 693525.pl line 12. [Mon Jun 23 21:24:48 2008] 693525.pl: 693525.pl had compilation errors +.

Please consider adopting a personal policy of using strict and warnings until you are far more expert with perl... and -- if you absolutely must and know why you're doing so-- turn off the relevant strictures. Again, the previous thread offers several notes on this, the essence of which is that you should consider "strict" and "warnings" tools to help you write working code; not as some kind of punishment or penalty.


In reply to Re: why is the content of frame.txt file not displaying by ww
in thread why is the content of frame.txt file not displaying by ketaki

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.