peacefuldragon has asked for the wisdom of the Perl Monks concerning the following question:
It didn't work and I want to see what I've done wrong and what I need to fix in order to reach my end goal. Thank Youuse strict; use warnings; print 'Please enter your card number' chomp($inp = <>); $inp =~ s/(\d{4})(\d{4})(\d{4})(\d{4})/$1 $2 $3 $4/; print $inp,"\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing digits in perl
by ww (Archbishop) on Apr 27, 2015 at 02:35 UTC | |
|
Re: Passing digits in perl
by marinersk (Priest) on Apr 26, 2015 at 23:58 UTC | |
|
Re: Passing digits in perl
by Anonymous Monk on Apr 27, 2015 at 01:08 UTC | |
|
Re: Passing digits in perl
by Anonymous Monk on Apr 26, 2015 at 23:58 UTC |