Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.20 KB | None | 0 0
  1. #!/usr/bin/env perl
  2. while (<DATA>) {
  3.     chomp;
  4.     my $from = $_;
  5.     s/(.)$//;
  6.     my $tail = $1;
  7.     s/\A 0+//x;
  8.     print "$from -> " . $_ . $tail . "\n" ;
  9. }
  10. __DATA__
  11. 090
  12. 0080
  13. 123
  14. 0
  15. 000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement