in reply to Re: Using Moo.pm and compilation errors
in thread Using Moo.pm and compilation errors

Thanks! That works brilliantly. I was assuming the error was in Moo, rather than the eval.
  • Comment on Re^2: Using Moo.pm and compilation errors

Replies are listed 'Best First'.
Re^3: Using Moo.pm and compilation errors
by walshy (Initiate) on Apr 30, 2015 at 10:53 UTC

    Just for clarity, the eval or did not work, so I used the following code:

    eval "use MHE::$opts->{type} qw(sendHeartbeat)"; die "Couldn't load 'MHE::$opts->{type}': $@" if $@;
      What do you mean by "didn't work"? Have you added the 1 at the end of the eval?
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ