In Pugs's t/pugsbugs/map_function_return_values.t, iblech added this test:

    %ret = map { $_ => uc $_ }, split "", $text;

This fails because it is parsed, undef the {=>} autocomposition rule, into:

    # Fails because arg1 is not Code
    %ret = map(hash($_ => uc $_), split("", $text));

Instead of the intended:

    # Works correctly
    %ret = map(sub ($_) { $_ => uc $_ }, split("", $text));

Is this a known issue?

Thanks,
/Autrijus/

Attachment: pgpxROseCK4Ob.pgp
Description: PGP signature

Reply via email to