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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2018-12-17 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (73 votes). Check out past polls.

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