holli has asked for the wisdom of the Perl Monks concerning the following question:
Perl5
Perl 6package YTDL::App; use YTDL::Frame; use base qw(Wx::App); use strict; sub OnInit { say "***"; return 1; } 1;
It sure looks right. However, the Perl 6 version complains about OnInit not returning true and the method OnInit is not called.use Wx:from<Perl5>; use Wx::App:from<Perl5>; class YTDL::App is Wx::App { sub OnInit { say "***"; return True; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [Perl6] Problem using Inline::Perl5
by raiph (Deacon) on Dec 18, 2016 at 02:40 UTC | |
by holli (Abbot) on Dec 20, 2016 at 06:16 UTC | |
|
Re: [Perl6] Problem using Inline::Perl5 (Wx)
by beech (Parson) on Dec 17, 2016 at 22:56 UTC | |
by Corion (Patriarch) on Dec 17, 2016 at 23:12 UTC | |
by holli (Abbot) on Dec 20, 2016 at 06:57 UTC | |
by beech (Parson) on Dec 20, 2016 at 08:33 UTC |