in reply to help me ---regarding string

You could use a regex like the following.
$spacyString=~ s/\s(\S)/$1/g;
This removes any space followed by a non-space character.
Edited to make work properly after morning coffee

Replies are listed 'Best First'.
Re^2: help me ---regarding string
by perlprint (Initiate) on Oct 06, 2009 at 08:49 UTC
    thanks a lot ...