in reply to [perlre] using qr - help needed

The syntax your are looking for is (?ix)$Regexp::file_re or (?ix:$Regexp::file_re), as detailed in perlre - but go with what gjb said.

Makeshifts last the longest.