On 09/26/2015 06:47 AM, Gabor Szabo wrote:
> Hi,
> I am really glad Rakudo finally came out.
> I've installed in and tried to run the tests of Perl6::Maven.
> They quickly failed as I have been using 'require' on string
> to check if all the module compile properly.
> The following code now fails:
> use v6;
> my $name = 'Bailador';
> require $name;
> even though
> require Bailador;
> works.
> In 2015.07 both worked.

I stumbled across the same thing in DBIish, and was told that the proper
way to require a module name (and not a file name) is

require ::($name);

which does work in 2015.09.

I guess there's no deprecation, because it was only an accident that the
string form worked before.


Reply via email to