in reply to Re: Getting a result from "foreach" block
in thread Getting a result from "foreach" block

Wow, great, thank you!

Such a shame I have never used map() before!

V.Melnik
  • Comment on Re^2: Getting a result from "foreach" block

Replies are listed 'Best First'.
Re^3: Getting a result from "foreach" block
by AppleFritter (Vicar) on Jun 25, 2014 at 11:53 UTC

    You're welcome! Keep map and grep in mind, they're among the most useful functions you'll ever see for list processing.

    For more useful list-related functions, see e.g. List::Util. (In particular, this contains a reduce function that sadly does not exist as a builtin.)