Yeah I tend to run several customised instances in lots of locations so
FindBin is less fragile for me and works most like the 'dot' did.
So hopefully it saves someone some time.
Cheers
--turtle
On Mon, Jan 8, 2018 at 12:24 PM, Robert J. Clay wrote:
> > Greetings all using FindBin and adding the
> Greetings all using FindBin and adding the current directory everywhere
> sql-ledger calls perl should fix the issue in all versions.
I appreciate the example perl script you provided but since it's
known where the package is installing sql-ledger to, I don't think
using "FindBin" is necessar
Greetings all using FindBin and adding the current directory everywhere
sql-ledger calls perl should fix the issue in all versions.
An example perl script would be:
perl -0777 -i.original -pe 's/(#!\/usr\/bin\/perl)/$1\n#perl 5.25 Fix:\nuse
FindBin qw\(\$Bin\);\nuse lib \"\$Bin\"\;/igs' *.pl
Chee
3 matches
Mail list logo