Guest User

Untitled

a guest
Jan 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. if ($#ARGV !=0){die ("Enter a file on command -line\n")
  2. }
  3. open(file, $ARGV[0]) or die("file could not be opened!\n");
  4. while($line = <file >){
  5. unshift(@lines, $line);
  6. }
  7. close(file);
  8. while(@lines>= 0){
  9. print(shift(@lines));
  10. }
Add Comment
Please, Sign In to add comment