perlmod: avoid 'do' semantics and just concatenate 5504/head
authorPhilip Prindeville <philipp@redfish-solutions.com>
Fri, 26 Jan 2018 01:34:32 +0000 (18:34 -0700)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Fri, 26 Jan 2018 01:48:34 +0000 (18:48 -0700)
commit1e0db9ba80fe0bd43c2312cf16dc1e2dd3a3e6b1
tree255e42f1666b04cac4fa29bfe85a69f839004e8d
parent6973d0e1d8422399762c9034f9e49f7bfa343afa
perlmod: avoid 'do' semantics and just concatenate

In Perl the 'do' construct has some odd side-effects regarding $@,
$!, and return values (i.e. 'do'ing a file which evaluates to undef
can be a little ambiguous).

Instead, generate a preamble to the Makefile.PL and execute it as
stdin.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
lang/perl/Makefile
lang/perl/perlmod.mk