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

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 $@;

Replies are listed 'Best First'.
Re^4: Using Moo.pm and compilation errors
by choroba (Cardinal) on Apr 30, 2015 at 11:04 UTC
    What do you mean by "didn't work"? Have you added the 1 at the end of the eval?
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ