Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^3: packaging perl

by dasgar (Priest)
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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-01-20 06:06 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (226 votes). Check out past polls.