I strongly suggest that you reconsider implementing this task as a "command line". They can save some work if the task is sufficiently simple and your typing skills are adequate. Only you can judge whether you are more comfortable typing on the command line or in an editor. I am quite sure that this task is to complex for the command line, especially for a beginner. You require input from a terminal and a file. Your cannot use stdin for both. Open the file explicitly. Another big reason for using .pl files is that they save your work. Requirements change. Next week you may be back asking us how to keep score. You should not have to start over.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|