fork download
  1. #!/usr/bin/perl -w
  2. use strict;
  3.  
  4. while(<>) {
  5.  
  6. chomp();
  7. my $shit = uc();
  8. my $bettershit = "";
  9.  
  10. while($shit) {
  11. $bettershit = $bettershit . chop($shit) . " ";
  12. }
  13.  
  14. print reverse($bettershit) . "\n";
  15.  
  16. }
Success #stdin #stdout 0s 6044KB
stdin
savage
stdout
 S A V A G E