in reply to Re: sprintf is printing unexepected outputin thread sprintf is printing unexepected output
That was it -- when I did a substitution to remove both CR and LF (ie. s/[\012\015]//g), it printed correctly.
Thanks for saving my sanity!