On Sun, Sep 12, 2021 at 12:23 PM Felipe Gasper <felipe@felipegasper.com> wrote: > > If I may, another suggestion/request: have the built-in return the > namespace itself. This way itâs easy to do stuff like: > > my $class = 'My::Class'; > my $thing = need($class)->new(); > This is easily sensible for the version which only returns or dies like require, which does not have a need for a significant return value (use_module from Module::Runtime does this). A version which uses the return value to indicate whether it was successful could also use the package name as the "success" return value, only because '' and '0' are not valid package names. -DanThread Previous | Thread Next