Wiggins has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Require Carp - doesn't
by idsfa (Vicar) on Dec 07, 2006 at 17:20 UTC | |
by Wiggins (Hermit) on Dec 07, 2006 at 19:06 UTC | |
by chromatic (Archbishop) on Dec 07, 2006 at 19:25 UTC | |
Re: Require Carp - doesn't
by diotalevi (Canon) on Dec 07, 2006 at 22:21 UTC |
Back to
Seekers of Perl Wisdom