Branch: refs/heads/class-struct-vs-exporter Home: https://github.com/Perl/perl5 Commit: 646b9b5c900bbd096ee9e648a612905d73418585 https://github.com/Perl/perl5/commit/646b9b5c900bbd096ee9e648a612905d73418585 Author: Dagfinn Ilmari Mannsåker <ilm...@ilmari.org> Date: 2023-10-05 (Thu, 05 Oct 2023)
Changed paths: M lib/File/stat.pm M lib/Net/hostent.pm M lib/Net/netent.pm M lib/Net/protoent.pm M lib/Net/servent.pm M lib/Time/gmtime.pm M lib/Time/localtime.pm M lib/Time/tm.pm M lib/User/grent.pm M lib/User/pwent.pm Log Message: ----------- Modernise Class::Struct-using core modules These modules cant't inherit from Exporter because they use Class::Struct, and were written before Exporter could export its import method. Now that it can, update them to do that, and remove the pointless BEGIN block around the Exporter setup. While here, switch to `package NAME VERSION` syntax and bump the `use VERSION` statement to 5.38 (but disable signatures, since the modules use prototypes). Commit: 01e511b185dcd42c77da0ddcdc9095b0b06b06bd https://github.com/Perl/perl5/commit/01e511b185dcd42c77da0ddcdc9095b0b06b06bd Author: Dagfinn Ilmari Mannsåker <ilm...@ilmari.org> Date: 2023-10-05 (Thu, 05 Oct 2023) Changed paths: M lib/File/stat.pm M lib/Net/hostent.pm M lib/Net/netent.pm M lib/Net/protoent.pm M lib/Net/servent.pm M lib/Time/gmtime.pm M lib/Time/localtime.pm M lib/User/grent.pm M lib/User/pwent.pm Log Message: ----------- Enable signatures and switch to explicit :prototype syntax Also get rid of pointless (@) prototypes. Compare: https://github.com/Perl/perl5/compare/1ca9d8be53dd...01e511b185dc