Hi to All, I have one simple code which is not working properly
print "Enter some lines, then press Ctrl-D:\n"; # or maybe Ctrl-Z @lines = <STDIN>; @reverse_lines = reverse (@lines); print @reverse_lines;
According to the code , it should return the reverse of whatever the list has been entered by the user . But,its been simply printing the same without reversing. Please help me.
In reply to Reversing of list through STDIN by gaurav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |