in reply to Re: PerlApp Error - /PerlApp/strict.pm did not return a true value.
in thread PerlApp Error - /PerlApp/strict.pm did not return a true value.

Hi Rob,

Thanks for the reply. The code runs fine as a perl script but as perlapp executable it throws the above error.

Useragent.pm and strict.pm contains only the following code ( modified to find the actual problem ):

UserAgent.pm package LWP::UserAgent; 1; =pod =head1 NAME LWP::UserAgent - Uniform Resource Locators =head1 SYNOPSIS $u1 = LWP::UserAgent->new($str, $base); $u2 = $u1->abs; =cut
strict.pm 1;

If we remove the pod lines from UserAgent.pm, the executable works fine. Really wierd seeing this behavior. I have posted in Active State's PDK forum, still need to hear a reply from them. Any clue from the following code where the problem lies?

-Karthik

Replies are listed 'Best First'.
Re^3: PerlApp Error - /PerlApp/strict.pm did not return a true value.
by chromatic (Archbishop) on May 27, 2008 at 04:16 UTC

    Is there really a space before =cut in UserAgent.pm? If so, remove it -- it's possible that Perl thinks that your strict is all POD.