Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Helen79
  • Content: Threads
  • Order by date
  1. Helen79

    i have ammended the code as follows

    i have ammended the code as follows but am still getting to fullstops at the end i.e. R.J.. sub shorten_initial() { @names = (split /\,/, $_[0]); $init = ""; foreach $name (@names){ $init = $init . substr($name,0,1) . ".";} $init=~s/\.\./\./g; return $init; } Any ideas...
  2. Helen79

    String operations

    Hello I am trying to perform an operation on a string variable such as John,Leslie,Smith and get J.L.S. i.e. just the initials out. This is driving me round the bend any help would be appreciated. Many thanks Helen

Part and Inventory Search

Back
Top