Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2019-08-18 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (134 votes). Check out past polls.

    Notices?