donkost has asked for the wisdom of the Perl Monks concerning the following question:
Each entry can be duplicated an unknown number of times. Also the numbers can be any number combination. The only thing that is consistent is the text NCLEGEND and the dashes. So what I need to do is capture each unique entry and assign to a variable. For example:NCLEGEND-11-20 NCLEGEND-11-20 NCLEGEND-1-10 NCLEGEND-1-10 NCLEGEND-1-10 NCLEGEND-1-20 NCLEGEND-1-20 .......
Any advice on how to do this would be greatly appreciated. Thanks,$nc1 = NCLEGEND-1-10 $nc2 = NCLEGEND-11-20 $nc3 = NCLEGEND-1-20 ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Capturing Unique Data
by kennethk (Abbot) on Aug 18, 2009 at 17:21 UTC | |
by donkost (Initiate) on Aug 18, 2009 at 17:39 UTC | |
by kennethk (Abbot) on Aug 18, 2009 at 17:44 UTC | |
by Zen (Deacon) on Aug 18, 2009 at 18:17 UTC | |
|
Re: Capturing Unique Data
by ikegami (Patriarch) on Aug 18, 2009 at 17:56 UTC | |
by donkost (Initiate) on Aug 19, 2009 at 15:29 UTC | |
|
Re: Capturing Unique Data
by bichonfrise74 (Vicar) on Aug 19, 2009 at 01:22 UTC | |
|
Re: Capturing Unique Data
by Marshall (Canon) on Aug 18, 2009 at 19:00 UTC | |
|
Re: Capturing Unique Data
by sanku (Beadle) on Aug 25, 2009 at 04:56 UTC |