Convert account numbers to hyphenated format with Perl