in reply to Re: Random Text: There's got to be an easier way
in thread Random Text: There's got to be an easier way
Again, the beautiful thing about perl is that there can be many different ways to do the same thing simply and elegantly. Thanks to all for the quick help!!
This is pretty much the code what I was looking at, though I need to learn to use "join" as beatnik pointed out above.
The final version for me, unless someone gives me a compelling reason to use "join".
my @seed=('a'..'z',2..9); my $rand=''; foreach(0..7){ $rand.=$seed[rand(@seed)]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Random Text: There's got to be an easier way
by Beatnik (Parson) on Jun 03, 2001 at 23:17 UTC |