Re: Perl calculate and average problem



"ed" <eklosterman@xxxxxxxxxxx> wrote in
news:1128089204.652449.294680@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:

> The course I'm taking hasn't gotten to the use of warnings/strict but
> I have read a little about it.

Ask for your money back. The *first* step in writing any Perl program
must be to enable strictures and warnings.

Have you read the posting guidelines, yet. They explain how you can help
yourself, but more importanttly, help others help you.

> As far as the number go, my frustration level is way up there and I've
> changed my script so many times that at this point not sure where
> numbers came from.

Well, you need to take five minutes, read the guidelines, and follow
them step by step. Then, go over your assignment, and come up with a
spec for your program which others can understand. Then, follow the spec
step by step to write it (with strictures and warnings enabled).

That way, when you his a snag, others will be able to help you.

> The way I understand this "You _do_ know that @params in scalar
> context is the number of elements in @params? " is that the the
> number is eight (total elements), not the numbers 1,2,3,4,5,7,8,9?

If @params consists of (1, 2, 3, 4, 5, 6, 7, 8, 9), then @params has 9
elements. $params[0] is the first element. $params[8] is the last
element.

You'll need to start quoting an appropriate amount of context, and
responding to specific questions others have asked to have any hope of
staying out of killfiles.

Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.



Relevant Pages

  • Re: FxCop does anyone use it ?
    ... Internal MS code breaks many guidelines. ... We could never have complied to so many guidelines without FxCop. ... You will notice that new warnings come out in bold, ... Animated vector graphics system ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: regex to match any url
    ... use warnings; ... (reverse each component and remove .invalid for email address) ... comp.lang.perl.misc guidelines on the WWW: ...
    (comp.lang.perl.misc)
  • Re: iterate the A B C
    ... You're running without strict and warnings. ... (remove .invalid and reverse each component for email address) ... comp.lang.perl.misc guidelines on the WWW: ...
    (comp.lang.perl.misc)
  • Re: Pushing onto / autovivfying array within a hash
    ... use warnings; ... I wanted to thank you very much for following the posting ... guidelines, and thereby making it easy to figure out the problem. ... (remove .invalid and reverse each component for email address) ...
    (comp.lang.perl.misc)
  • Re: creating named subroutines in a loop
    ... package Person; ... use strict; ... use warnings; ... Sinan Unur ...
    (comp.lang.perl.misc)