Hi all,
Been searching the net for a few hours now.
I have a basic operation I wish to perform but, cannot find examples
close enough to what I'm after to implement it myself.
This is what I want to do:
$version = '10.2.0'
I want to manipulate the string to make a new var ($cutversion), equal
just 102.
For example in perl (since I know it):
$version = '10.2.0';
if ($version =~ /^(\d+)\.(\d+).*$/) {
$cutversion = $1 . $2;
}
Any help?
Thanks,
Aaron.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.