Home  |  Linux  | Mysql  | PHP  | XML
From:Uri Guttman Date:Mon Feb  8 23:03:45 2010
Subject:Re: sequential value check
>>>>> "CS" == Curt Shaffer <cshaffer@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 ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Re: Substitution question
sorting anonymous arrays inside arrays
Perl script to monitor memory usage on unix box
Re: Perl script to monitor memory usage on unix box
Substitution question



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants