On Mon, Feb 24, 2003 at 11:21:53AM +0100, Martin Fabiani wrote: > thank you for writing PAR which is a great tool. And until now, it worked > great.
Thanks for your support. :-)
> I would like to pack the following code into an exe:
>
> #! /usr/bin/perl
> use warnings;
> use strict;
> use Tk;
>
> my $mw = MainWindow->new();
> $mw->Scrolled('Text')->pack;
>
> MainLoop;
<snip>
> F:\work\perl\partest>a.exe
> Can't locate Tk/AddScrollbars.pm in @INC (@INC contains: CODE(0xb11c58) E:/
> wampp
> 13a/perl/lib E:/wampp13a/perl/site/lib .) at /loader/0x13aaef4/Tk/Widget.pm
> line
> 259.
As the error message states, maybe you should add a:
use Tk::AddScrollbars;
in your script, as Module::ScanDeps cannot know which Tk widget(s) the script
is using.
A thought is to do a lexical analysis on all widget-looking statements:
/->(\w+)(.*)->pack/
on the source file, but I'm not sure how portable or accurate that
approach would be. Comments welcome. :-)
Thanks,
/Autrijus/
pgp00000.pgp
Description: PGP signature
