In my quest for knowledge, I am experimenting and getting confused. Here I am trying to insert dashes between sets of 4 with no luck. I have tried hashes (#) instead of (d) with the same results. The format string is always returned:
$CCformatted = sprintf 'dddd-dddd-dddd-dddd, $cardNum;
I know the answer is simple, but so am I ;-)