If you want anything from 5.10.0 and later, you don't need to specify a minor version:
use v5.10;
You might consider using at least 5.10.1, which had some significant changes to the earlier minor version (including fixing your warning):
use v5.10.1;
But, give us a sample program, show use which Perl you're using and all that other stuff.