This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Croak on unimplemented already at import time
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 10 May 2016 12:56:13 +0000 (08:56 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 12 May 2016 00:58:57 +0000 (20:58 -0400)
commit19fc2965b60669d7bc25548edb32e3cdd86a68de
treeacaae6948c61a479b99615c2a9619115aefa5741
parentf914a2ba4b8f428b4efbe6b125d07f221f107a40
Croak on unimplemented already at import time

For example

  perl -MPOSIX=atexit -e 1

is never going to work in runtime, so why should it work in compile time.

This will probably break a lot of CPAN code, that have "good reasons"
for their strange imports.

Also the error messages change format, which will no doubt  break another
set of equally righteous CPAN modules.
ext/POSIX/lib/POSIX.pm
ext/POSIX/t/posix.t
ext/POSIX/t/unimplemented.t