Hi,
This is exactly what I was looking for.
Thank you very much. You just made my day :)
Regards,
Nisse
Chas Owens wrote:
On 5/7/07, Nisse Tuta <[EMAIL PROTECTED]> wrote:
Hi All,
I am having big problems solving this sorting issue and would really
appreciate any help on this.
I have a list
On 5/7/07, Nisse Tuta <[EMAIL PROTECTED]> wrote:
Hi All,
I am having big problems solving this sorting issue and would really
appreciate any help on this.
I have a list with each row containing 3 numbers(Run In Out).
For example,
R01 13 19
R01 25 30
R01 23 47
R01 2 14
R02 2 45
R02 55 60
R01 1
Date sent: Mon, 07 May 2007 19:19:52 -0200
From: Nisse Tuta <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject:complex sort
> Hi All,
>
> I am having big problems solving this sorting issue and would really
> appreciate any help
I don't understand what you want to do with duplicates. The example
input and output don't seem to match.
You likely want to use a hash.
You can do something like this (untested code):
my %hash;
foreach (@array) {
my ($run, $in, $out) = split / /; # Split the array element by spaces
# Count the
On 5/7/07, Nisse Tuta <[EMAIL PROTECTED]> wrote:
I would like to go through these and check for any overlapping numbers
at both In and Out and replacing either the in out or both if
overlapped. And any cuts/breaks in each run will add a count.
I'd like more information on what you're trying to