>>>>> "CS" == Curt Shaffer <cshaf...@gmail.com> writes:

  CS> I'm trying to figure out a way to compare a couple values to see
  CS> if they are sequential or not.  I'm running a for loop and
  CS> grabbing a value and setting a variable through each iteration. At
  CS> the end I would like to examine the results and see if they are
  CS> sequential or not.

  CS> If the values are less or more than 100 of the last then print
  CS> something like "not sequential". If they are equal or less than
  CS> 100 greater then the last then print "possibly sequential".

this sounds like an easy problem. why don't you try to code it up and
then post that code here. then we can help you with your solution.

  CS> Can anyone point me at a way to do this?

it is best to work it out for yourself and then ask for help. this is a
simple problem that shouldn't need guidance for a solution. just write
code that reflects what you said in english. if you have trouble, write
more specific english with concrete details. that is easier to translate
to code.

thanx,

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to