On Friday, May 17, 2002, at 07:08 , Haitham N Traboulsi wrote:
> Hi,
> I am working on a chunk of PERL software that can find out the groups of
> consecutive numbers located within a list. For instance imagine that the
> list contains 1, 2, 3, 4, 10, 14, 15, 16, 20, 34, 35, 36,................
> .......
> the program has to locate 1, 2, 3, 4 14, 15, 16 34, 35, 36 as
> groups. I would appreciate any help with this problem. thanks a lot.
was the home work assignment set as
Given an arbitrary array of integers
solve for the sequencing thereof?
looks like you will want to know how to return a reference to
a hash from a function and how to do
if ( $y == ($x + 1) )
as well as how to pick through a list two things at a time....
If this is not a homework assignment - you're gonna have
to sell the context of the problem as a part of a real project.
ciao
drieux
---
volks - should I have a section up on my webPages
about how to solve the homework assignments....
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]