Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Simple formatting question for credit card number

by tedrek (Pilgrim)
on Aug 13, 2003 at 01:59 UTC ( #283421=note: print w/replies, xml ) Need Help??


in reply to Simple formatting question for credit card number

And let's throw a substr solution into the mix as well :)

$n = "4744760012394122"; $r = substr($n,-4,4,"")." ".$r while $n ne "";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://283421]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2021-09-19 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?