in reply to Re3: Simple formatting question for credit card numberin thread Simple formatting question for credit card number
sub format_cc { my ($n, $s) = @_; scalar reverse join $s, (reverse $n) =~ /(.{1,4})/g; } [download]
Makeshifts last the longest.