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
In reply to Re: get a certain number of words from a line
by Tomte
in thread get a certain number of words from a line
by js1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |