Home  |  Linux  | Mysql  | PHP  | XML
From:Curt Shaffer Date:Mon Feb  8 22:52:16 2010
Subject:sequential value check
I'm trying to figure out a way to compare a couple values to see if they are sequential or not.

I'm running a for loop and grabbing a value and setting a variable through each iteration. At the end I would like to examine the results and see if they are sequential or not.

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

Can anyone point me at a way to do this?
Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Writing tests for module utility scripts
Re: use with variable
Re: 1-line text file with numbers, need to add to them
Re: Any Good SCM tool to manage Perl Code locally
Re: Any Good SCM tool to manage Perl Code locally



  
© 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