in reply to Pick up specific file name

Two regexp tests in one condition:

next unless $item =~ /_0828900840_/ and $item =~ /D602BG/;


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Pick up specific file name
by soonix (Chancellor) on Jul 08, 2017 at 15:49 UTC
    thus will match even if the order is inverted, e.g. a name like D602BG*_0828900840_*. Depending on the OP's "real" requirements, this might even be an advantage, but given the specification, it is not.