I want to change a variable $name with the value of first.last (john.doe) to First.Last (John.Doe).
Like the format for the variable will always have a "." between the first and last name. I want to make the first letter of the first and last name are a capitol.
So I though I would split $name at the "." by doing
@split_email = split(".", $name"
;
But I forgot how I would set the first part of the name and last part of the name as individual variables so I can make the first letter of each upper case and then put them back together.
Can someone help me?
Like the format for the variable will always have a "." between the first and last name. I want to make the first letter of the first and last name are a capitol.
So I though I would split $name at the "." by doing
@split_email = split(".", $name"
But I forgot how I would set the first part of the name and last part of the name as individual variables so I can make the first letter of each upper case and then put them back together.
Can someone help me?