Thanks for the advice, I will try HARDER and repost if I cannot figure
it out!

"R. Joseph Newton" wrote:
> 
> Mame Mbodji wrote:
> 
> > This is a hwk, but I never asked for a complete answer
> 
> 1.  The term "homework" refers to something fluid, rather than discrete, and
> therefore does not take an article ['a' or 'the']
> 2.  Please do not abbreviate words, unless the abbreviation is a very standard
> one.  I wasted 2-3 minutes just puzzling out what "hwk" meant: Hawk? some
> mispspelling or typographical error/  Who knows?  There are enough accidental
> errors that get into e-mail traffic.  There is no need to add those that arise
> simply from a lack of effort.
> 
> When asking for guidance related to school studies, it is a good idea to explain
> what topics you are covering.  The example problem you are working with can be
> handled in a number of ways.  Which one may be most appropriate depends largely
> on what programming tools it is intended to help you learn about.  Is the
> reverese function the focus of your studies?  Have shoft or unshift come up in
> your class readings?  Is the focus on handling string data?
> 
> One thing I would suggest from seeing your code--you need to have more respect
> for the material.
> Int his code:
> while(my @line = <REGFILE>) {
> 
> foreach my $lin(@line){
> my @lines = $lin;
> print reverse(@lines);
> }
> 
> }
> 
> You use some variant or abbreviation for the word line in three different
> places.  You do not use them sensibly.  The plural of line is lines.  This
> should probably be the name of the array, since it is the array that holds more
> than one line.  The elements in each line are characters, not lines.  Why do you
> call them @lines?   That doesn't make sense.
> 
> There are a number of simple ways to achieve the desired effect.  Please rework
> your code, using variable names that indicate that you have put some serious
> thought into the problem, and repost.  We can probably guide you towards some
> good solutions.
> 
> Joseph
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Reply via email to