note
ikegami
<p><c>can</c> should be used for methods and only for methods, so that should be
<c>
my $full_pkg = "Test::".$pkg;
my $hello = $full_pkg->can('hello');
$full_pkg->$hello(...);
# Or: $hello->($full_pkg, ...);
</c>
<p>which simplifies to:
<c>
my $full_pkg = "Test::".$pkg;
$full_pkg->hello(...);
</c>
<p>You don't even need <c>can</c> if the method name is variable.
<c>
$full_pkg->$method_name(...);
</c>
1008906
1008944