I might attempt this like this, which is a little more verbose than the string version of
eval, but "feels" more correct to me (though there's nothing wrong with using that other form of eval):
BEGIN {
eval {
require Time::HiRes;
import Time::HiRes 'time';
}
warn "Couldn't load Time::HiRes, but that's OK\n\t$@"
if $@;
}