On Sunday 30 January 2005 11:44, Lev Serebryakov wrote:
> AB> Unless I hear too many cries "don't do that" (with justification), I
> AB> plan to not create any perl symlinks in /usr/bin in the forthcoming
> AB> upgrade of both lang/perl5.8 (to 5.8.6) and lang/perl5 (to 5.6.2).
>
> AB> In practical terms this will mean a one-time sweep of your scripts in
> AB> order to convert them, in a typical case, from #! /usr/bin/perl to
> AB> #! /usr/local/bin/perl.
>   In all scripts of all my friends, who have hosting on my server & use
> perl scripts? NO, THANKS!

Don't despair, ironically Perl itself can solve this problem for you, using 
something like 

find /some/directory -type f -print0 | \
        xargs -0 perl -pi -e 's,^#! ?/usr(/local)?/bin/perl,#!/usr/bin/env perl'

- Frerich

-- 
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

Attachment: pgpCmjDmRMR3o.pgp
Description: PGP signature

Reply via email to