On Mon, 19 Sept 2022 at 18:36, Aaron Priven <aaron@priven.com> wrote: > > I wonder if it wouldnât be more flexible to have > > module_file_of (âFoo::Barâ); +1 this is not bad idea > > and then allow that to be loaded into require or used for any other desired purpose, rather than having a special âloadâ routine. > > e.g., > > my $x = module_name_of('Foo::Bar'); > require $x; > > would be equivalent to > > require Foo::Bar; > if I understand it correctly, load should behave like: my $loaded = eval { require $x; 1 }Thread Previous | Thread Next