Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by perl_5eeker (Novice)
on Jan 10, 2019 at 22:29 UTC ( [id://1228343]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1228343]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-04-25 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found