Hello, I'm trying to pack/compile (using: http://search.cpan.org/~autrijus/PAR/script/pp with pp --gui -o test.exe test.pl) this simple app:
#!/usr/bin/perl -w

use Win32::GUI();
use Win32::TieRegistry (Delimiter=>"/");
use File::Basename;
use strict;

    my $slabel;

    my $main = Win32::GUI::Window->new(
        -name   => 'User APP',
        -title => "User APP",
        -width  => 550,
        -height => 300, 
    );


    $main->Show();
    Win32::GUI::Dialog();
    exit(0);




sub Main_Terminate {
        return -1;
}
#EOF
however it does not work, it does not start for some reason. Any ideas why ? If I try to compile/pack it using pp -o test.exe test.pl then I get error: Can't locate Win32.pm in @INC (@INC contains c:\strawberry \perl\vendor\lib .) I've also tryed:

pp --lib c:\strawberry\perl\lib -M Win32::GUI -o test.exe test.pl
but the result was pretty much the same, throwning an error that it was not able to find Win32.pm. Any ideas how to fix it ?

In reply to Par and Win32 does not work ? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.