MAIN Sub

2011-02-16 Thread Bottoms, Christopher A
Hello all, As soon as I add the MAIN sub to my module file, my test file complains: Method 'chars' not found for invocant of class 'Failure' in 'Cool::substr' at line 2365:CORE.setting in 'process-cmd-args' at line 7414:CORE.setting in at line 7492:CORE.setting in 'MAIN_HELPER' at line 1

[perl #84266] [BUG] Importing a module with a MAIN sub causes Rakudo to die inappropriately

2011-02-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #84266] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=84266 > $ cat A.pm use v6; sub MAIN { } $ cat foo use v6; use A; $ perl6 foo Method 'chars' no

Re: MAIN Sub

2011-02-16 Thread Bruce Gray
On Feb 16, 2011, at 4:14 PM, Bottoms, Christopher A wrote: Hello all, As soon as I add the MAIN sub to my module file, my test file complains: --snip-- In your module file, after the "use v6" line, add this line: module MaizeDiversity::Impute; -- Hope this helps, Bruce Gray (Util of P

Re: MAIN Sub

2011-02-16 Thread Carl Mäsak
Christopher (>): > As soon as I add the MAIN sub to my module file, my test file complains: I've submitted this as a Rakudobug: Thank you for reporting it. // Carl

[perl #84280] [BUG] LTA error message when multi sub exported out of a module fails to bind to an argument that happens to be a block

2011-02-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #84280] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=84280 > $ cat A.pm module A; sub foo(Str $a) is export { } multi sub bar(Str $a) is export { }