in reply to get a certain number of words from a line

array-slices are simpler and easier to read:

$front = join (' ', @F[0..10]); $back = join (' ', @F[11..15]);
hth

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
    Or,
    $front = "@F[0..10]"; $back = "@F[11..15]";

    --
    [ e d @ h a l l e y . c c ]

Re^2: get a certain number of words from a line
by js1 (Monk) on Jun 15, 2004 at 13:52 UTC

    Bless you tomte!

    Thanks,

    js1.