fork download
  1. #!/usr/bin/perl
  2. # your code goes here
  3. my $str = '112133';
  4. $str =~ s/(.?)\1/$1/g;
  5. print $str;
Success #stdin #stdout 0s 4540KB
stdin
Standard input is empty
stdout
1213