in reply to A simple,
And here's another way:#!/usr/bin/perl - w use strict; my @list = qw (first second third fourth fifth sixth + seventh eigth ninth tenth); print join ' ', reverse (@list);
#!/usr/bin/perl - w use strict; my @list = qw (first second third fourth fifth sixth + seventh eigth ninth tenth); my @reverse = reverse (@list); print "@reverse";
|
|---|