Compiling Perl with PAR
- From: "anton.vandersteen@xxxxxxxxx" <anton.vandersteen@xxxxxxxxx>
- Date: 29 Aug 2006 21:06:46 -0700
Hello Perl friends,
I am trying to compile a perl programme with :
ppm install PAR
ppm install Module-ScanDeps
Then you can create an executable with the line:
pp script.pl -o script.exe
to an ".exe" programme.
However when I run the executable "file.exe" there occur problem
because I use Tk.
Below you can see the original Perl programme:
#!perl/bin/perl -w
use Tk;
use Tk::Clock;
my $MW=MainWindow->new();
### --- Prevents Main Window Resizing
$MW->bind('<Configure>' => sub{
my $xe = $MW->XEvent;
$MW->maxsize($xe->w, $xe->h);
$MW->minsize($xe->w, $xe->h);
});
$MW->title("My Analog Clock");
$clock = $MW->Clock();
$clock->config(
useDigital => 1,
useAnalog => 1,
anaScale => 250,
handColor => 'Blue3',
secsColor => 'Yellow2',
tickColor => 'Orange',
);
$clock->pack();
MainLoop();
I am hoping that someone can help me.
The clock is a test. When this works I can solve a bigger problem.
Thanks in forehand.
.
- Follow-Ups:
- Re: Compiling Perl with PAR
- From: Sisyphus
- Re: Compiling Perl with PAR
- From: John Bokma
- Re: Compiling Perl with PAR
- Prev by Date: Re: Allowing threading with CGI
- Next by Date: Re: Compiling Perl with PAR
- Previous by thread: Gnome panel applets and Gtk2::TrayIcon
- Next by thread: Re: Compiling Perl with PAR
- Index(es):
Relevant Pages
|
|