T Kidwai wrote: > > hello everybody, Hello,
> i needed some help with the diamond operator (<>) > i am trying to use it in a while like so: > > while(<>){} This reads all the lines from all the files listed in @ARGV and does nothing with them. > @somearray = reverse(@ARGV); This reverses the contents of @ARGV (the file NAMES from the command line) and stores them in @somearray. > printf("@somearray"); You should use print unless you _really_ need the formatting features of printf (which you don't here.) > i run the perlscript with a file suffix like: > ./perlscript test1.txt > i am trying to reverse the contents of test1.txt line-by-line and print them > out. but i dont get any output.any help would be appreciated. print reverse <>; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]