only goto &UNIVERSAL::VERSION on perl 5.10+
authorGraham Knop <haarg@haarg.org>
Thu, 28 May 2015 04:58:13 +0000 (00:58 -0400)
committerGraham Knop <haarg@haarg.org>
Thu, 28 May 2015 04:58:13 +0000 (00:58 -0400)
commit161de96d646141fb2bb8d28b000ce614c9286e2e
tree82e76d955fe0918ca04b1bb1510f75048f05d1f4
parentcd7827626c6ee8af1df33c3a2fd92322593e1ff1
only goto &UNIVERSAL::VERSION on perl 5.10+

We'd prefer to always use a goto when calling UNIVERSAL::VERSION, so
that the error reporting shows the correct location.  It seems to like
segfaulting on some 5.8 builds though, so we're better off being safe
and only doing it on 5.10+.
lib/strictures.pm