[wellylug] Perl on server
kfor at compsoc.com
Mon Dec 8 17:07:51 NZDT 2008
>> you might need to edit the first line to become the right path for
>> your perl executable
> I'm aware of the path requirement, thanks.
As a by-the-way, the perlrun(1) manpage suggests using
or an ugly shell eval/exec hack, to avoid explicitly specifying the
path to the perl binary.
To check what modules you're missing, something like:
( cd /path/to/perl/scripts &&
find ./ -name '*.pl' -print0 \
| xargs -r0 egrep '^use ' \
| sort | uniq \
| while read use_line
perl -e "$use_line" 2>/dev/null
if [ $? -eq 0 ]
echo " '$use_line' compiles, at least"
echo ">> '$use_line' failed - module missing?" >&2
More information about the wellylug