#!/usr/local/bin/perl use strict; use warnings; use Data::Dumper; my @a = ('rev','test','neko') warn Dumper \@a; my @b = reverse @a; warn Dumper \@a; warn Dumper \@b;