Thanks for your patience hollywood. Below i have show the value of the variable $forename before being shortened to just initials and the value of the variable $forename after being shortened.
John,Leslie --> J.L.
John --> J.
William,Carter,Smith --> W.C.S.
I have created a sub with the details you have given me and it works to a certain extent. The only problems is there is always two full stops at the end of the variable returned i.e. J.P.L.. OR J..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.