You should look at the rand function

perldoc -f rand

also,

perldoc perlop

and look for the . operator and .= operator as well as the .. range
operator.

If that doesn't work, try asking your professor for help.

Tanton
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 9:32 PM
Subject: Re: random string


> Hi,
> > why would you want to use Perl in the first place? no other
alternatives?
> Maybe, But I am not a coder at all.
> > your problem is straight forward and if you are not familiar with Perl,
you
> > might want to go with another language. i don't think it will be that
hard
> > right? c/c++? java? shell script?
> hehehehee, if I knew that then i would have made it myself. I know a bit
> of shell scripting, but I never knew that one can generate random string
> in shell.
> Can you help me do it in perl?
> My requirement is very very simple. To write a program which will
> generate *just* a random string of say 8 characters. Characters allowed
> will be - [a-z] [A-Z] [0-9]. Can it be done?
> Thanks and bye.
> -Payal
>
> --
> -------------------------------------------------------------------
> Contact :- Linux Success Stories : -
> <payal at hotpop dot com> www.geocities.com/rpayal99
> -------------------------------------------------------------------
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to