in reply to stand alone executable using "pp -o" wont stand alone!

Hi,
Try this out  pp -o out.exe -e 'print "Hi!"' If this works
fine then all others should also work fine.
couldn't find diagnostic data in D:\cpanrun\build\5-8-0\lib/pods/perldiag.pod CODE(0xe336d0) CODE(0xd3a158) . li3.exe at C:/Perl/lib/Diagnostics.pm line 249, <POD_DIAG> line 24739. Compilation failed in require at script/li2.pl line 7, <POD_DIAG> line 24739. BEGIN failed--compilation aborted at script/li2.pl line 7, <POD_DIAG> line 24739"

just chk whether you have this file in the specified place
D:\cpanrun\build\5-8-0\lib/pods/perldiag.pod
The error states hlaf of the path in unix and other half in
windows. May be try to install perl from the active
state if u have a perl from the cpan.
Thanks
Sasi Kumar

Replies are listed 'Best First'.
Re^2: stand alone executable using "pp -o" wont stand alone!
by Plotinus (Sexton) on Dec 17, 2004 at 10:28 UTC
    I am using activeperl (will remember to mention this next time I post). Also since I want to use this as a standalone executable perldiag.pod will be missing (as will the rest of PERL) on any machine that this runs on. I'll try the use warnings and the one liner test. Thank you for the extremely quick replies.
      Thank you monks of distinction ;-)  pp -o out.exe -e 'print "Hi!"' didn't run but  pp -o out.exe -e "print \"Hi!\"" did which proved that the basic installation worked. Then I replaced 'use diagnostics' with 'use warnings' and that did the trick. Bit confused though as to why simply removing the line 'use warnings' didn't fix the fault.