Guest User

Untitled

a guest
Aug 15th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/usr/bin/env perl
  2. use strict;
  3. use warnings;
  4.  
  5. my $count = <>;
  6. chomp $count;
  7. x(\$count, scalar <>);
  8.  
  9. sub x{
  10. my ($count, $word) = @_;
  11. my $next = <>;
  12. x($count, $next) if $next;
  13. print $word if $$count-- > 0;
  14. }
Add Comment
Please, Sign In to add comment