[wellylug] Perl on server
John Durham
john.modec at xtra.co.nz
Mon Dec 8 17:57:20 NZDT 2008
Kevin O'Riordan wrote:
>>>> #!/usr/local/bin/perl
>
>>> 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
>
> #!/usr/bin/env perl
>
> 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
> do
> perl -e "$use_line" 2>/dev/null
> if [ $? -eq 0 ]
> then
> echo " '$use_line' compiles, at least"
> else
> echo ">> '$use_line' failed - module missing?" >&2
> fi
> done
> )
>
> hth,
> Kev
That could be very handy,thanks.
--
Regards, John Durham <http://modecideas.com/contact.html?sig>
ICQ number 497166248 Fax/Phone 64 4 5286786
Award winning web site at http://modecideas.com?sig
Terms of trade at http://modecideas.com/lvl22.html?sig
Order my novel (RETURN) at http://stores.lulu.com/store.php?fAcctID=1382737
PC-HELPERS list subscribe/unsub at http://modecideas.com/discuss.htm?sig
Good advice is like good paint- it only works if applied.
More information about the wellylug
mailing list