in reply to What is the fastest way to extract data from a delimited string?
Only using map... very brief though :)use strict; my (@list) = map { /\w+\s+\w+\s+\w+\s+\w+\s+\w+\s+(\w+)\s+.*/} <DATA>; print "@list"; __DATA__ 1 2 3 4 5 6 7 8 james joe jack janet jill joann joeanne bill bob alice joe jack janet jill alice joeanne bill bob james joe jack janet jill susan joeanne bill bob james joe jack janet jill sarah joeanne bill bob james joe jack janet jill ethel joeanne bill bob
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: What is the fastest way to extract data from a delimited string?
by dragonchild (Archbishop) on Jan 10, 2003 at 15:49 UTC |