# New Ticket Created by  Daniel Ruoso 
# Please include the string:  [perl #61126]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61126 >


The following two snippets of code are supposed to behave the same:

sub bar($code) { $code() };
sub foo { bar { return 1 }; return 2; }; say foo;

and

sub foo { map { return 1 }, 1; return 2 }; say foo;

both are supposed to return "1".

For some reason, map is being handled specially, while it is supposed to
be dispatched as any regular sub.

daniel

Reply via email to