Re: Perl calculate and average problem
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 14:13:46 GMT
"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
.
- References:
- Re: Perl calculate and average problem
- From: ed
- Re: Perl calculate and average problem
- From: Josef Moellers
- Re: Perl calculate and average problem
- From: ed
- Re: Perl calculate and average problem
- Prev by Date: Re: Perl calculate and average problem
- Next by Date: Re: Reg Exp and sentences
- Previous by thread: Re: Perl calculate and average problem
- Next by thread: Re: Perl calculate and average problem
- Index(es):
Relevant Pages
|
|