in reply to Pushing rows of data into array

push @all, @{ $rows }[0 .. $n-1]; # for appropriate $n

Replies are listed 'Best First'.
Re^2: Pushing rows of data into array
by AnomalousMonk (Archbishop) on Apr 18, 2016 at 22:24 UTC

    Why not just
        push @all, @$rows;
    and forget about $n?


    Give a man a fish:  <%-{-{-{-<

Re^2: Pushing rows of data into array
by Anonymous Monk on Apr 18, 2016 at 20:54 UTC
    How would you get the value for $n?