bluedevil has asked for the wisdom of the Perl Monks concerning the following question:
output like this:-1 2 - perlmonks1 sdweq23 3 4 - javaforums2 sd341 5 6 - deamtech3 fr4frf34 7 8 + dreamtech3 dcvdf3443 9 10 + sunforum4 sdcds3443 11 12 - sunforum4 ddfvdv333
I want to find out the smallest and largest value in field 1 and then print it as start / end and if there is only 1 key value pair then print it as one. Thanks1 2 - perlmonks1 sdweq23 one 3 4 - javaforums2 sd341 one 5 6 - deamtech3 fr4frf34 start 7 8 + dreamtech3 dcvdf3443 end 9 10 + sunforum4 sdcds3443 start 11 12 - sunforum4 ddfvdv333 end
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing problem
by GrandFather (Saint) on Jul 29, 2009 at 04:42 UTC | |
by imrags (Monk) on Jul 29, 2009 at 04:57 UTC | |
by bluedevil (Initiate) on Jul 29, 2009 at 06:10 UTC | |
by NetWallah (Canon) on Jul 29, 2009 at 06:24 UTC | |
|
Re: Parsing problem
by bichonfrise74 (Vicar) on Jul 30, 2009 at 03:44 UTC |