in reply to Re^2: Formatting with sprintf
in thread Formatting with sprintf

Old perl ?

my $CCformatted = join '-', $card =~ /..../g;

Most of my PP hours were in Citabria's, but that was 41? years ago :)