in reply to Using a variable to define a variable
$ecounter=0; my @file_line_contents = split (/\|/,$_); while ($ecounter < 45) { $ecounter=length($file_line_contents[$ecounter]); $ecounter+=1; } [download]