in reply to Create string with a delay

Isn't that just a sum of lengths?

$w_pos = length($a) + length($b) + length($c) + length($d) + 10 # length of $e + ... + length($v); # everything up to $w $e = sprintf("%010d", $w_pos);
Of course, this would be a whole lot easier if you had all these vars in a single array...

Replies are listed 'Best First'.
Re^2: Create string with a delay
by jeanluca (Deacon) on Jun 14, 2006 at 13:14 UTC
    You're right, but in my situation the construction of that string is very complex!