Why are you trying to do this? If the library is completely written, working and out of your control, then adding strict and warnings won't cause it to do anything it doesn't already do, except for maybe stop working in new and stupid ways. Otherwise, if the module is still in development, which is the only time strict is useful, why don't you just make whoever is developing it put strict in?