steph_bow has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks
I have some problems to do a computation
Here is the file I would like to make computation on the following file, which represent the plane arrival hour
03:05 03:17 03:23
What I would like to do is to compute the flow which means the number of arrivals in the following next 20 minutes. It would give:
03:01;2 # the planes of 03:05 and 03:17 03:02;2 03:03;3 # the plane of 03:23 03:04;3 03:05;2 # the plane of 03:05 has arrived 03:06;2 03:07;2 03:08;2 ...
The problem with using <$INFILE> is that you can't go back so I do not see a method to solve the problem. Coudl you check ? Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: computation difficulty
by pc88mxer (Vicar) on Apr 04, 2008 at 15:40 UTC | |
|
Re: computation difficulty
by FunkyMonk (Bishop) on Apr 04, 2008 at 15:59 UTC | |
by ack (Deacon) on Apr 04, 2008 at 17:50 UTC | |
|
Re: computation difficulty
by dsheroh (Monsignor) on Apr 04, 2008 at 16:17 UTC | |
|
Re: computation difficulty
by swampyankee (Parson) on Apr 04, 2008 at 15:54 UTC | |
|
Re: computation difficulty
by perlfan (Parson) on Apr 04, 2008 at 15:38 UTC | |
|
Re: computation difficulty
by Anonymous Monk on Apr 04, 2008 at 17:08 UTC |