substr($s1, 0, 1) eq substr($s2, 0, 1)
( () = $s1 =~ /(M+)/ ) == ( () = $s2 =~ /(M+)/ )
( my $s1_ = $s1 ) =~ tr/M/\1/c; ( my $s2_ = $s2 ) =~ tr/M/\2/c; ( ( $s1_ ^ $s2_ ) =~ tr/\0// ) >= 5
Update: Nevermind. I misread #3.
In reply to Re: Can you help me re-write this code?
by ikegami
in thread Can you help me re-write this code?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |