5.8.8 is waaaaay old.
That's why
my $CCformatted = $card =~ s/....\K\B/-/gr;
doesn't work, the /r came along in 5.14.
my $CCformatted = join '-', $card =~ /..../g;
should still work.
In reply to Re^4: Formatting with sprintf
by Anonymous Monk
in thread Formatting with sprintf
by citabriabob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |