Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Golf: Replacing part of a string with "*"

by Sidhekin (Priest)
on Aug 18, 2006 at 15:43 UTC ( #568200=note: print w/replies, xml ) Need Help??


in reply to Golf: Replacing part of a string with "*"

29, counting the semicolon. :-)

my $string = '5424123412345678'; substr($string,0,-4)=~y//*/c; print $string;

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2018-09-23 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (191 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!