#!/usr/bin/perl -w @t = qw( aaaa bbbb ccccccc dddddd ); # assumes $i is undef or == 0 @n = map {$i+=5." ".$_} @t; print map {$_."\n"} @n;