in reply to Formatting with sprintf
sprintf doesn't apply
#!/usr/bin/perl # http://perlmonks.org/?parent=1147312;node_id=3333 use strict; use warnings; $| = 1; my $card = '1234543267679898'; my $CCformatted = $card =~ s/....\K\B/-/gr; print $CCformatted, "\n";
I had to respond because I love Citabria's.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Formatting with sprintf
by citabriabob (Novice) on Nov 10, 2015 at 01:00 UTC | |
by kennethk (Abbot) on Nov 10, 2015 at 01:13 UTC | |
by Anonymous Monk on Nov 10, 2015 at 01:22 UTC |