http://www.perlmonks.org?node_id=494033


in reply to Perl Version Change - Detecting Problems in Advance

one thing i just thought of ...

if you want to "quickly and painlessly" add  use strict; and  use warnings; you could just use some inline perl ...

replace the  #! line with <code> $1 plus the 2 pragmas ...