Guest User

Untitled

a guest
Jun 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. print "Ctrl z to stop\n";
  2. print "Enter list:\n";
  3. @list = <STDIN>;
  4. foreach $string (@list)
  5. {
  6. chomp($string);
  7. }
  8. print "\n";
  9. for( $i=@list-1; $i>-1; $i-- )
  10. {
  11. print $list[$i];
  12. print "\n";
  13. }
Add Comment
Please, Sign In to add comment