In order to use
perlcc. (no comments needed), I need to change all of the 'use' commands to 'require' for inclusion in the compile.
require threads ;
require threads::shared ;
require IO::Socket;
require Thread::Semaphore;
require Getopt::Std;
require Carp;
Works for all but Carp.
PerlThreads]# perlcc -o xm xm.pl
/usr/bin/perlcc: xm.pl did not compile:
String found where operator expected at xm.pl line 98, near "carp "bad
+ args""
(Do you need to predeclare carp?)
String found where operator expected at xm.pl line 144, near "carp "N
+amed pipe (-n) required ""
(Do you need to predeclare carp?)
String found where operator expected at xm.pl line 151, near "carp "p
+roblem with the NamedPipe ($opt_n) ""
(Do you need to predeclare carp?)
....
obvious - don't use Carp. Other than that, any suggestions or explanations?