What is the smartest way of searching through an array of strings for a matching string in Perl?
One caveat, I would like the search to be case-insensitive
s
#!/usr/bin/env perl use strict; use warnings; use Data::Dumper; my @bar = qw(aaa bbb); my @foo = grep {/aAa/i} @bar; print Dumper \@foo;