in reply to A simple,

  1. From the Perl docs:
    # perldoc -f reverse =item reverse LIST In list context, returns a list value consisting of the elements of LIST in the opposite order. In scalar context, concatenates the elements of LIST and returns a string value with all characters in the opposite order.
  2. Just try this: print "@list";

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com/

Replies are listed 'Best First'.
RE: Re: A simple
by Jouke (Curate) on Oct 04, 2000 at 17:07 UTC

      This code:

      #!/usr/bin/perl -w use strict; my @list = qw (first second third fourth fifth sixth seventh eigth ninth tenth); print "@list";

      Does the following on my machine:

      Mi 04.10.2000 15:41:50,56 D:\tmp >perl try.pl first second third fourth fifth sixth seventh eigth ninth tenth Mi 04.10.2000 15:43:47,85 D:\tmp >
      Christian Lemburg
      Brainbench MVP for Perl
      http://www.brainbench.com