Hi, I am a really new perl beginner and I would like to have some help.

I would like to transform a string like :

MSDDIDWLHSRRGVCK

in a identical string, but with two spaces between each letter:

M  S  D  D  I  D  W  L  H  S  R  R  G  V  C  K

I have tried with tr

$string =~ tr/ABCDEFGHIJKLMNOPQRSTUVWXYZ/A B C D E F G H I J K L M N O P Q R S T U V W X Y Z /;

but it does not work because it does not consider 'A ' as a single character.

Thanks a lot
Cinzia


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to