in reply to Array Filter and Lookahead
Here's another option:
my @test_filtered = map { (/(\d+)[\d.]*/g)[-1] // '' } @test;
Update: changed to // to handle 0s. Thanks again, AnomalousMonk.
In Section
Seekers of Perl Wisdom
in reply to Array Filter and Lookahead
Here's another option:
my @test_filtered = map { (/(\d+)[\d.]*/g)[-1] // '' } @test;
Update: changed to // to handle 0s. Thanks again, AnomalousMonk.