in reply to Re: OS X ElCaptain Activeperl Tk
in thread OS X ElCaptain Activeperl Tk
I get the same Error with your code (good point to keep it so simple). My code was:
#!/usr/bin/perl -w # Display Hello World program use Tk; use strict; my $mw = MainWindow->new; $mw->geometry("200x100"); $mw->title("Hello World!!!"); $mw->Label(-text => 'Hello World')->pack(); $mw->Button(-text => "Close", -command =>sub{exit})->pack(); MainLoop;
Tk was installed with ppm so I really thought I was on the safe side... but no. Do I have to install codeX to make it run? I do not think is the case. I also tried a mini script with Tkx (which comes with Activestate already installed) and it works fine. What can I try?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: OS X ElCaptain Activeperl Tk
by Marshall (Canon) on Jun 15, 2016 at 19:00 UTC | |
by Anonymous Monk on Jun 15, 2016 at 22:03 UTC | |
by Anonymous Monk on Jun 15, 2016 at 22:14 UTC | |
by Marshall (Canon) on Jun 17, 2016 at 13:15 UTC |