in reply to Re: extracting a list element
in thread extracting a list element

I looked into List::UtilsBy#extract_by and it's irritating iterating over the array values aliased to $_ , and only one dimension, i.e. non diving.

There is no information of the index passed into the lambda.

Hence one would need to define and increment it on its own, which seems too cumbersome to me.

Or do you have a better idea?

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^3: extracting a list element
by hippo (Archbishop) on Jan 05, 2024 at 23:14 UTC

    Without an SSCCE (ideally in the form of a test) it's just guesswork as to what geoffleach actually wants to achieve. I'm quite content to wait until that arrives.


    🦛