in reply to Re^3: Best way(s) to process form data into fixed-length values?in thread Best way(s) to process form data into fixed-length values?
Note that %5s will not truncate a string that is too wide. You need %5.5s to do that.