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

Future::HTTP dynamically loads the appropriate backends, so you need to include these when packaging your script too.

  • Comment on Re^3: Running a packaged script using MozRepl

Replies are listed 'Best First'.
Re^4: Running a packaged script using MozRepl
by frazap (Monk) on Jul 19, 2017 at 13:35 UTC
    Thanks !

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

    F.

      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