in reply to regular Expression

Would this help
my ($x,$y,$z) = $version =~/(\w+)\.(\w+)\.(\w+)/;
Note: untested, need an example of $version!