hello everyone,
I have the following code that works flawlessly except doe not count higher that 10. When it reaches 10 it just keeps repeating 10. I am using the code to assign unique numbers and store them in a database field.
$sw_version = "3.1.1";
$asset_name = "ShipName";
$retreived_value = "3.1.1_ShipName_10";
my $incremented_value = (split(/\_/, $retreived_value))[-1];
$incremented_value ++;
$incremented_value = $sw_version."_".$asset_name."_".$incremented_value;
Thanks in advance for any help
I have the following code that works flawlessly except doe not count higher that 10. When it reaches 10 it just keeps repeating 10. I am using the code to assign unique numbers and store them in a database field.
$sw_version = "3.1.1";
$asset_name = "ShipName";
$retreived_value = "3.1.1_ShipName_10";
my $incremented_value = (split(/\_/, $retreived_value))[-1];
$incremented_value ++;
$incremented_value = $sw_version."_".$asset_name."_".$incremented_value;
Thanks in advance for any help