in reply to Re: Store the outcome of a foreach loop in an array
in thread Store the outcome of a foreach loop in an array

Thanks for your quick response @val2? - I meant to extract the 3rd column of the array "@val2".

  • Comment on Re^2: Store the outcome of a foreach loop in an array

Replies are listed 'Best First'.
Re^3: Store the outcome of a foreach loop in an array
by pryrt (Abbot) on Jan 10, 2019 at 22:30 UTC

    $val[2] gives the third element of @val.

Re^3: Store the outcome of a foreach loop in an array
by LanX (Saint) on Jan 10, 2019 at 22:33 UTC
    [link] creates a link outside code tags, that's why I misinterpreted your code.

    See also my update.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice