szabgab has asked for the wisdom of the Perl Monks concerning the following question:
See the following example:
#!/usr/bin/perl -T use strict; use warnings; use Archive::Any; my $aa = Archive::Any->new($0); print "OK\n";
Which gave me
The code around line 153 looks like this:Insecure dependency in eval while running with -T switch at .../perl5/ +Archive/Any.pm line 153.
Any idea how to get it work?sub new { my ( $class, $file, $type ) = @_; $file = rel2abs($file); return unless -f $file; my %available; my @plugins = Archive::Any::Plugin->findsubmod; foreach my $plugin (@plugins) { eval "require $plugin"; next if $@; my @types = $plugin->can_handle(); foreach my $type ( @types ) { next if exists( $available{$type} ); $available{$type} = $plugin; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Archive::Any in taint mode
by jethro (Monsignor) on Oct 30, 2010 at 23:38 UTC | |
|
Re: Using Archive::Any in taint mode
by $h4X4_|=73}{ (Monk) on Oct 31, 2010 at 09:22 UTC |