I'm differentiating between version numbers and expressions because it helps understand which is which and give the data to the user.
It also codifies version numbers as Standard Perl understands it.
v?([0-9]{1,3}\.)([0-9]{1,3}\.)?[0-9]{1,3}
use Foo::Bar;
use Foo::Bar 4.0;
use Foo::Bar v1.55.6;
use Foo::Bar ('bar', 'baz');
use Foo::Bar 4.8 ( 'foo', 'bar' );
use Foo;
use Foo ( 'baz', 'quux' );
use v5.28;
use 5.010;
[This should be rebased before merging.]
I'm differentiating between version numbers and expressions because it helps understand which is which and give the data to the user.
It also codifies version numbers as Standard Perl understands it.
v?([0-9]{1,3}\.)([0-9]{1,3}\.)?[0-9]{1,3}