Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: s/\w/random character/g

by esskar (Deacon)
on Apr 08, 2004 at 22:13 UTC ( #343778=note: print w/replies, xml ) Need Help??


in reply to s/\w/random character/g

#!/usr/bin/perl -w use strict; sub randchar { return chr int(rand(26)) + 65; } while (<DATA>) { s!\w!&randchar!ge; print $_; } __DATA__ ABCDEFG

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://343778]
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 2023-03-28 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (69 votes). Check out past polls.

    Notices?