Hello Monks,
I am learning to use arrays with the lama book. One of the questions reads: "Write a program that reads a list of strings on separate lines until end-of-input and prints out the list in reverse order". The most recommended answer at the end of the book is the code below:
print "Enter some lines, the press Ctrl-D:\n"; print reverse <STDIN>;
I entered that code into strawberry perl,and that code didn't work. and when I tried to use Ctrl D the output was this "^D". Why isn't the answer code working and how do I write the proper code for the question?
In reply to Arrays and the Llama Book by Red Viper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |