I don't fully understand exactly what you need, but here is an additional way to Marshall's to do what you may want:
c:\@Work\Perl\monks>perl -le
"use warnings;
use strict;
;;
use Data::Dumper;
;;
my @ra = (100, 200, 300, 400);
print Dumper \@ra;
;;
@ra = map { [ $_+1, $_-1 ] } @ra;
print Dumper \@ra;
"
$VAR1 = [
100,
200,
300,
400
];
$VAR1 = [
[
101,
99
],
[
201,
199
],
[
301,
299
],
[
401,
399
]
];
See the
map built-in and the core (i.e., supplied with all standard Perl releases) module
Data::Dumper.
Give a man a fish: <%-{-{-{-<