in reply to Re^3: Running a packaged script using MozRepl
in thread Running a packaged script using MozRepl

Thanks !

Could you be more specific on how can I include the missing object reference ?

F.
  • Comment on Re^4: Running a packaged script using MozRepl

Replies are listed 'Best First'.
Re^5: Running a packaged script using MozRepl
by Corion (Patriarch) on Jul 19, 2017 at 13:48 UTC

    Most likely by adding the appropriate command line to your pp configuration file.

    Maybe it is

    -M Future/HTTP/Tiny.pm
      Thanks for the suggestion, but adding this to my hudge list does not cure the problem.

      I added

      END { print "$_ -> $INC{$_}\n" foreach sort keys %INC; }
      at the end of my script (following a post on this forum).

      I use this list to make my options list (which results in 152 lines). Among these was a call to

      -M WWW/Mechanize/Chrome/Node.pm
      That gives an error. Removing this line gives an exe that works at the end.

      The receipe from marto Re: Packaging a script using WWW::Mechanize::Firefox with using -x in running pp failed: my script died since it needs two filenames in argument, resulting in a empty log file

        WWW::Mechanize::Chrome::Node is an inner package of WWW::Mechanize::Chrome and lives in that same file.

        I'm not sure why it would show up in %INC, but you certainly can't find it in its own file.