Perhaps we should disallow “unit” with -e?
> On 28 Mar 2016, at 20:18, Trey Ethan Harris wrote:
>
> No, see S06-routines.pod:
>
> As with module and class declarations, a sub declared
> with the C declarator (and ending in semicolon) is allowed at the
> outermost
>
Perhaps we should disallow “unit” with -e?
> On 28 Mar 2016, at 20:18, Trey Ethan Harris wrote:
>
> No, see S06-routines.pod:
>
> As with module and class declarations, a sub declared
> with the C declarator (and ending in semicolon) is allowed at the
> outermost
>
No, see S06-routines.pod:
As with module and class declarations, a sub declared
with the C declarator (and ending in semicolon) is allowed at the
outermost
file scope if it is the
first such declaration, in which case the rest of the file is the body:
unit sub MAIN
# New Ticket Created by Itsuki Toyota
# Please include the string: [perl #127795]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=127795 >
See the following results.
$ perl6 -e 'use Test; my Set (%a, %b); %a{"abc"} =
> On 27 Mar 2016, at 16:05, Itsuki Toyota (via RT)
> wrote:
>
> # New Ticket Created by Itsuki Toyota
> # Please include the string: [perl #127793]
> # in the subject line of all future correspondence about this issue.
> #
2016.03 released.
--
Will "Coke" Coleda
On Sun Mar 27 07:11:14 2016, cookbook_...@yahoo.co.jp wrote:
> Sorry, it is the post for perl6.
> I mistook the category of this post.
> But I don't have a permission to change that.
Looks like I do, I've moved it.
Tony