perl.req errors out when it tries to skip over some here-docs due to found identifiers ending up unquoted in regexp, and too lenient parsing of starting here-doc identifiers, for example:
Unmatched ) in regex; marked by <-- HERE in m/^';y;\r\n;;d;$_=pack'b*',$_;$_=eval;$@&&die$@;$_) <-- HERE ."\n$$ref\n\n/ at /usr/lib/rpm/perl.req line 89, <FILE> line 30.
Created attachment 362125 [details]
Here-doc skipping/parsing improvements to perl.req
Patch against upstream git
Applied upstream now, thanks for the patch!
This went into rawhide some time ago (rpm 4.7.1-7)