http://qs321.pair.com?node_id=379068


in reply to String manipulation

Elegance, of course, is in the eye of the beholder.

my $init = 1; my $step = 4; my $count = 5; + my $string = join ' ' => map { $_ * $step - ($step - $init) } 1 .. $count;

If your code works, there's nothing wrong with it.

Cheers,
Ovid

New address of my CGI Course.