Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

String::Random

by ishmael (Novice)
on Jun 13, 2001 at 12:08 UTC ( #88021=modulereview: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use String::Random;
    $foo = new String::Random;
    # e.g. AqF8, YcE2, BjW8 ...
    $string = $foo->randpattern("CcCn");
    
  2. or download this
    # define vowels
    $foo->{'V'} = [ qw(a e i o u) ];
    # define common consonants
    $foo->{'Q'} = [ qw(r s t n m) ];
    # e.g. retom, satan, timis ...
    $string = $foo->randpattern("QVQVQ");
    
  3. or download this
    # e.g.  342, 289, 832 ...
    print $foo->randregex('\d\d\d'); 
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: modulereview [id://88021]
help
Chatterbox?
[Eily]: s/complete ness/complete mess/ :P

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2017-07-27 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (415 votes). Check out past polls.