in reply to Re^3: Formatting with sprintf
in thread Formatting with sprintf
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Formatting with sprintf
by citabriabob (Novice) on Nov 10, 2015 at 19:52 UTC | |
by LanX (Saint) on Nov 10, 2015 at 22:03 UTC |