someaction() if first { $_ eq "foo } @somearray