Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^3: packaging perl

by dasgar (Curate)
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
Replies are listed 'Best First'.
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

    #!/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 -I -o start

      % pp -I /foo hello          # Extra include paths does not look like an include path :)

      However, pp still manages to pack both and , even if is packed as another script

      This is what is normally typed

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

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2015-10-05 04:11 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (107 votes), past polls