in reply to Perl code to format the text file by inserting tag in blank line
$dimens=scalar(keys(%ind)); for ($jj=1; $jj <= $dimens; $jj++) { # Writing output mt reserve meas list print OUTFILE "<mt>$kpi[$jj]<\/mt>\n"; } ... ... for ($jk=1; $jk <= $dimens; $jk++) { # Writing output r meas list result sorted in the same ord +er than mt list print OUTFILE "$result{$value}{$ext}{$kpi[$jk]}\n"; } ... ... ...
Just something that caught my eye... I don't know how you are initializing the @kpi array, but with this code, it needs one more element than the number of elements in the %ind hash (Perl arrays are 0-based by default).
Give a man a fish: <%-{-{-{-<
|
|---|