Bod has asked for the wisdom of the Perl Monks concerning the following question:
I'm taking my first tentative steps into using taint mode!
A problem has quickly got me rather stuck...
I want to use a module in a relative path but taint mode removes '.' from @INC
If I do this:
It complains that Site::HTML cannot be found.#!/usr/bin/perl -T use CGI::Carp qw(fatalsToBrowser); use Site::HTML; use strict; use warnings;
So I called on FindBin to help like this:
But now get an error Insecure dependency in require while running with -T switch at migrate.pl line 7.#!/usr/bin/perl -T use CGI::Carp qw(fatalsToBrowser); use FindBin qw($Bin); use lib "$Bin"; use Site::HTML; use strict; use warnings;
Is this the correct way to load a relative module under taint mode?
Is the problem with the way I am loading the module or with the module itself?
Should I be doing something completely differently?
Back to
Seekers of Perl Wisdom