# swap items 1 and 3 my $temp=$arr[1]; $arr[1]=$arr[3]; $arr[3]=$temp;