Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

String::Random

by ishmael (Novice)
on Jun 13, 2001 at 12:08 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: modulereview [id://88021]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-03-28 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found