Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

PerlApp weirdness

by chinman (Monk)
on Jul 21, 2001 at 09:20 UTC ( #98627=perlquestion: print w/replies, xml ) Need Help??

chinman has asked for the wisdom of the Perl Monks concerning the following question:

Now, here's the deal:

I'm trying to compile a fairly complex set of scripts. A couple of the scripts are called via require. Even when I specify adding both explicitly with the -a switch, one gets successfully packaged and the other does not. I have checked all of the "require"d scripts to make sure there is a 1; at the end. The scripts are also required explicitly (i.e., no variable names). Oddly, I can get the packaging to work if I use the -b option on the one that does not get added. Anybody have a clue what up with this?

Here's some output from the compile process:

PerlApp -s=xznova.pl -e=xznova.exe -a=znova.pl;graphspec.pl -f -v -r

Input script name: xznova.pl
Output exe name: xznova.exe
Exe Mode: Freestanding
Building Console mode exe
Temp files will be kept on exit
Failed 'use's will be reported
Additional module: znova.pl ----------------------these are the 2 that it says it's going to add, yeah right!
Additional module: graphspec.pl ------------------ba da bing
Adding Module: C:/Perl561/lib/Carp.pm
Adding Module: C:/Perl561/lib/Exporter.pm
foo
bar
baz
blah
yada
Adding Module: C:/Perl561/lib/File/Basename.pm
Adding Module: ./graphspec.pl ------------------ba da boom, but I only got one of the two, dang!
Adding Module: C:/Perl561/site/lib/GD/Graph.pm
Adding Module: ./znova.params
Adding Module: C:/Perl561/lib/Fcntl.pm
Adding Module: C:/Perl561/lib/Cwd.pm
Adding Module: C:/Perl561/lib/AutoLoader.pm
Adding Module: C:/Perl561/lib/IO/Seekable.pm
Adding Binary: C:/Perl561/lib/auto/IO/IO.dll
Adding Binary: C:/Perl561/site/lib/auto/GD/GD.dll
Adding Binary: C:/Perl561/lib/auto/Fcntl/Fcntl.dll
Adding Binary: C:/Perl561/lib/auto/POSIX/POSIX.dll
Adding Binary: C:/Perl561/site/lib/auto/Win32/Clipboard/Clipboard.dll

#!/usr/bin/perl -w $camel = $hump do { theHumpty($camel); }

Replies are listed 'Best First'.
Re: PerlApp weirdness
by tachyon (Chancellor) on Jul 21, 2001 at 13:39 UTC

    On the surface it would appear to be a bug. It seems your calling syntax is correct as the -a=foo;bar seems to parse OK identifying foo and bar, but perhaps you might try:

    PerlApp -s=xznova.pl -e=xznova.exe -a=znova.pl -a=graphspec.pl -f -v -r
    And after this try re-arranging the order of the cmd line args. As I know you had these modules in before :-) think about what is different now to then. It did work. It now does not. What have you done differently?

    All the best, sorry not to have any really concrete suggestions. Oh, forgot the usual Windows refrain - when all else fails reinstall and reboot. It often works!

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      Yep, I think you are right, this appears to be a bug in PerlApp. It feels like I'm doing something wrong, since if I go back to an older version of my script it works as expected. I am using  #!/usr/bin/perl -w and  use strict and I get no complaints from the Perl interpreter with either script. I don't think there's anything "wrong" with my script (other than it's about 1200 lines long, ouch), but PerlApp does not like it. I guess I'll just continue to use -b, as that appears to work. How bazaah, how bazaah. Thanks for the suggestions.

      chinman

      #!/usr/bin/perl -w $camel = $hump do { theHumpty($camel); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://98627]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2022-09-30 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (126 votes). Check out past polls.

    Notices?