Bug 36792: Limit POSIX imports
authorJanusz Kaczmarek <januszop@gmail.com>
Mon, 6 May 2024 12:06:22 +0000 (12:06 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 6 May 2024 13:04:31 +0000 (15:04 +0200)
commit8d9ccd6fc371877fbd4d016ee3bc1de54721787e
treef6c6f711491f3a628ef60ffcee41e2c57d90cc89
parentff183612043b8f37d74fbbd9c306a54c48329d99
Bug 36792: Limit POSIX imports

A Marcel's QA patch to Bug 36552 added use POSIX; in two spots.
In https://metacpan.org/pod/POSIX we read:

CAVEATS
Everything is exported by default (with a handful of exceptions). This is
an unfortunate backwards compatibility feature and its use is strongly
discouraged. You should either prevent the exporting (by saying use
POSIX ();, as usual) and then use fully qualified names (e.g.
POSIX::SEEK_END), or give an explicit import list. If you
do neither and opt for the default (as in use POSIX;), you will
import hundreds and hundreds of symbols into your namespace.

This patch fixes this.

No test plan.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
authorities/authorities.pl
cataloguing/addbiblio.pl