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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i have ammended the code as follows

Status
Not open for further replies.

Helen79

Programmer
Dec 2, 2003
4
0
0
GB
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

Sorry about some of my replies being in someone elses name i am using a shared computer with cookies enables at work.

Helen
 
I've it fixed now people there was a fullstop being inserted in another part of the code. Thanks Paul and hollywood.

Helen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top