Avoid criticizable perl code
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 9 Mar 2023 11:02:18 +0000 (12:02 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 9 Mar 2023 11:02:18 +0000 (12:02 +0100)
commit590a075789b541d5c1a190031fdcf061355bcfbc
treeca21a88768fda460bae449bfb9202843df8799a5
parentd00a4ad1d56bbdbc032257803c0a97a583aec211
Avoid criticizable perl code

Using `require` / `->import` instead of `use` avoids the use of a
"stringy eval", making for cleaner code that we don't need to silence
perlcritic about.

Per Andrew Dunstan

Discussion: https://postgr.es/m/7cd3bbbd-0216-4436-d571-8f80c9259a07@dunslane.net
src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl