use RandomModule; { no warnings; RandomModule::doSomethingThatCanGenerateWarnings(); }