in reply to Detecting if a program or file exists

You could use the $PERL_VERSION variable or $] .
if ($] > 5.007){ # Behave differently }else{ #Old style behaviour }

     "Man cannot live by bread alone...
         He'd better have some goat cheese and wine to go with it!"