in reply to Random letters
foreach $x ('a' .. 'z') {$alph->{$y} = $x; $y++;}
foreach (0 .. 25) {$b = rand 25; $alph->{int $b}, "\n";}
This will print out 25 random letters from the hash...you can change that to print out however many you want.
Maurice
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: Random letters
by chromatic (Archbishop) on Apr 12, 2000 at 18:44 UTC | |
by Anonymous Monk on Apr 12, 2000 at 22:46 UTC |
In Section
Seekers of Perl Wisdom