in reply to Not inheriting imported subs

That's what namespace::clean or namespace::autoclean do.

In your example, just add

use namespace::clean;
right after
use Data::Dump qw/dd/;
in the Bar package.

can dd: undef at ./1.pl line 45. AUTOLOAD Bar::dd at ./1.pl line 27.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Not inheriting imported subs (SOLVED: namespace::clean)
by LanX (Saint) on Apr 28, 2019 at 21:06 UTC
    Great! Finally I get what namespace::clean does.

    Another good reason to buy Ribasushi a beer or comb his hair ... or both! :)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice