Uhh... Before $prt{'reversal_flag'} = " "; $prt{'reversal_flag'} = sprintf("%-3s",$prt{'reversal_flag'}); $prt{'reversal_period'} = " "; $prt{'reversal_period'} = sprintf("%-8s",$prt{'reversal_period'}); After $prt{'reversal_flag'} = " "; $prt{'reversal_period'} = " "; Right? j