]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Make help-extract.pl work with Perl 5.10.x.
authorZack Weinberg <zackw@panix.com>
Sun, 10 Jul 2022 15:47:45 +0000 (11:47 -0400)
committerZack Weinberg <zackw@panix.com>
Sun, 10 Jul 2022 19:00:48 +0000 (15:00 -0400)
commitdb7205a8647f5c197953a60d1e86a9993e1a9dca
treecb947e209e0772c29d7e964c24c386fddeb35c50
parentf580247d46011977b1a6d1567e86d358a73a4dc4
Make help-extract.pl work with Perl 5.10.x.

The main issue was use of s///r; the /r modifier was added in 5.14.
Since the baseline is now 5.10.0 instead of 5.6.0, a couple places
can be tidied up using slightly newer constructs.

* help-extract.pl: Use File::Spec::Functions instead of File::Spec
  for reduced clunkiness.
  (eval_qq_no_interpolation): Don’t use s///r.  Do use \K and (?=...)
  to match the empty string (but only in just the right locations),
  so we don’t need to use $& in the replacement.
  (main): Don’t use s///r.
build-aux/help-extract.pl