$sentence = "5:83:24"; print split(/:/, $sentence)[1]; #returns 83 [download]
split(/:*/, $sentence); #which should return 24 [download]
In reply to how to split a string and take certain position? by adrive