Permalink
Browse files

Update RFC_Grammar.pm

Patch thanks to colomon updating module for changes in require spec.
  • Loading branch information...
1 parent 50980c0 commit 240f8d025a72dfd9695290dde45981f238287d79 @ronaldxs ronaldxs committed May 3, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/IETF/RFC_Grammar.pm
@@ -37,7 +37,8 @@ method new(Str $rfc, $grammar?) {
%rfc_grammar_build.exists($rfc)
) {
unless %rfc_grammar.exists($rfc) {
- require %rfc_grammar_build{$rfc};
+ my $module = %rfc_grammar_build{$rfc};
+ require ::($module);
%rfc_grammar{$rfc} = eval %rfc_grammar_build{$rfc};
}
$init_grammar = %rfc_grammar{$rfc};

0 comments on commit 240f8d0

Please sign in to comment.