in reply to Suppressing desired warnings from output of Test::NoWarnings
Consider using Test::Warnings which roughly combines the functionality of Test::Warn and Test::NoWarnings, plus fixes a few issues with the latter.