in reply to get a certain number of words from a line
array-slices are simpler and easier to read:
hth$front = join (' ', @F[0..10]); $back = join (' ', @F[11..15]);
regards,
tomte
An intellectual is someone whose mind watches itself.
-- Albert Camus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: get a certain number of words from a line
by halley (Prior) on Jun 15, 2004 at 14:08 UTC | |
|
Re^2: get a certain number of words from a line
by js1 (Monk) on Jun 15, 2004 at 13:52 UTC |