Skip to content

Commit

Permalink
require with a variable needs the ::($var) syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
cjfields committed Sep 21, 2015
1 parent e7bc221 commit 1ccd936
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Bio/SeqIO.pm6
Expand Up @@ -25,11 +25,13 @@ class Bio::SeqIO does Bio::Role::Pluggable['SeqIO']
my $plugin = "Bio::SeqIO::" ~ $!format;

try {
require $plugin;
require ::($plugin);
};

if ::($plugin) ~~ Failure {
#note(@*INC.join("\t"));
die "Can't load $plugin: $!";

} else {
$!plugin = ::($plugin).new(|%args);
}
Expand Down

0 comments on commit 1ccd936

Please sign in to comment.