org chen wrote: > > Hi, There is an string, if each letter in the string is not belong to > [a-z][A-Z][0-9], I want to change it to "+". eg. my $str = "3ijZ()a";if($str > !~ /[a-z][A-Z][0-9]/){add code here}print $str; #output will be: 3ijZ++a > please help me complete this code. Thanksorg
$str =~ tr/0-9A-Za-z/+/c; Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/