maddfisherman has asked for the wisdom of the Perl Monks concerning the following question:
i have an array with one line per element. like this element # content 1 ***1*** 2 stuff 3 stuff 4 ***end1*** 5 ***2*** 6 stuff 7 stuff 8 ***end2*** and i want el. 1 to hold the strings between ***1*** and ***end1*** an +d so on how should i do this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid - the lone range operator to the rescue!) Re: sorting an array
by Ovid (Cardinal) on Aug 21, 2001 at 00:45 UTC | |
|
Re: sorting an array
by Cine (Friar) on Aug 21, 2001 at 00:15 UTC | |
|
Re: sorting an array
by George_Sherston (Vicar) on Aug 21, 2001 at 01:16 UTC | |
|
Re: sorting an array
by runrig (Abbot) on Aug 21, 2001 at 00:43 UTC | |
by Ovid (Cardinal) on Aug 21, 2001 at 00:58 UTC | |
|
Re: sorting an array
by maddfisherman (Sexton) on Aug 21, 2001 at 01:15 UTC |