eval 'use Data::Dumper; 1' or die $@; print Dumper $x; # WON'T work, confusing warning message print Dumper($x); # will work