Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: packaging perl

by dasgar (Deacon)
on Jun 19, 2014 at 21:14 UTC ( #1090514=note: print w/ replies, xml ) Need Help??


in reply to Re^2: packaging perl
in thread packaging perl

Can you provide the following information?

  • Names and full paths to the .pl script and .pm files that you wrote and are trying to use
  • The use and require statement lines from your .pl script.
  • The full command you're using to call pp (including all option arguments for pp).

If you can provide this information, that could help others figure out what's happening and how to fix it.


Comment on Re^3: packaging perl
Select or Download Code
Re^4: packaging perl
by Jocqui (Novice) on Jun 20, 2014 at 06:03 UTC

    Here is an example of the code i am using in the start.pl

    #!/usr/bin/perl use strict; use warnings; use Time::HiRes qw(usleep); require moduleA; require moduleB; &moduleA::functionA(); &moduleB::functionA(); &moduleB::functionB(); __END__

    and the perl moduleA

    package moduleA; use strict; use warnings; require Expect; require Time::HiRes; require moduleB; use Time::HiRes qw(usleep); sub functionA() { my variableA ="&moduleB::functionB"; .............. ................ return someihng; }

    When using pp

    pp start.pl -I ModuleA.pm ModuleB.pm -o start

      % pp -I /foo hello          # Extra include paths

      ModuleA.pm does not look like an include path :)

      However, pp still manages to pack both ModuleA.pm and ModuleB.pm , even if moduleB.pm is packed as another script

      This is what is normally typed

      If for some reason . is not in @INC its
      $ pp -I . -x start.pl -o start

      My test files in the form of a patch (apply with patch -p0 -i my.patch )

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2014-12-22 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (132 votes), past polls