>>>>> "Dr-Nikon" == Dr-Nikon <[EMAIL PROTECTED]> writes:
Dr-Nikon> Write a program that acts like cat, but reverses the order of the lines of Dr-Nikon> all the files specified on the command line. It should also reverse the Dr-Nikon> content of each file. Dr-Nikon> Ie Dr-Nikon> % perl.pl txt1 txt2 Dr-Nikon> 2txet si sihT Dr-Nikon> 1txet si sihT That's not the example. And yes, the problem is that the word "reverse" is ambiguous there. Stupid English. :) :) All we meant was to reverse the order of the lines, so that the output is from the last line of the last file through the first line of the first file. Future editions of the book will most certainly fix this error and introduce others in its place, in order to fulfill the requirements of the Mandatory Minimum Number of Problems in Publications law. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
