in reply to Re: [Perl6] Problem using Inline::Perl5 (Wx)
in thread [Perl6] Problem using Inline::Perl5

I tried that too
use Wx:from<Perl5>; my $app = Wx::SimpleApp.new; my $frame = Wx::Frame.new( Nil, -1, 'Hello, world!' ); $frame.Show; $app.MainLoop;
fails complaining about the symbol "SimpleApp" not being known.


holli

You can lead your users to water, but alas, you cannot drown them.

Replies are listed 'Best First'.
Re^3: [Perl6] Problem using Inline::Perl5 (Wx)
by beech (Parson) on Dec 20, 2016 at 08:33 UTC

    Hi,

    Does the perl5 program run from perl5?

    If so, then it sounds like a bug in Inline::Perl5 to me :)

    Also, the two programs arent exactly equivalent, missing  Wx.import(':allclasses'); or some such

    update: odd, saw no docs the other day at https://github.com/niner/Inline-Perl5 , this would be equivalent  use Wx:from<Perl5> <:allclasses>; so the new program

    use Wx:from<Perl5> <:allclasses>; use Wx::SimpleApp:from<Perl5>; use Wx::Frame:from<Perl5>; my $app = Wx::SimpleApp.new; my $frame = Wx::Frame.new( Nil, -1, 'Hello, world!' ); $frame.Show; $app.MainLoop;