Subject: | PerlMinimumVersionAndWhy : Document workarounds for qr{}m |
As the ways of avoiding the qr{}m issue is not obvious, this blob aught to have some documentation explaining workarounds.
Some of this is required due to the over-application of https://metacpan.org/pod/Perl::Critic::Policy::RegularExpressions::RequireLineBoundaryMatching wherein people add /m , and then not until later does somebody realise the compatibility problems that implies.
1. If you need to match start and end of a *string*, use \A and \z respectively. They behave the same regardless of the /m modifier.
2. If you need the possibly-multiple-matching start and end of _LINES_ ( The condition usually indicated by /m + ^$ ), then a suggested workaround is to rewrite it in terms of (?m: ... )
https://rt.perl.org/Public/Bug/Display.html?id=7781
However, as to whether or not this has side effects, I am unable to confirm that at this time, only that some clarity needs to be found at some stage for backcompat reasons.