$ perle 'BEGIN { @INC = qw{old new .} } use xyz 2.0; say $xyz::VERSION' xyz version 2 required--this is only version 1.0 at -e line 1. BEGIN failed--compilation aborted at -e line 1.