in reply to Re: Re: Generating a random string of chars, easily.
in thread Generating a random string of chars, easily.

BTW isn't a int missing before the rand @alpha ?
I mean, it works without it but it seems strange no?
Since arrays indices are integer based, so perl automagically converts the given float to an int. I should imagine it would be rather awkward accessing the 2.53815239812875th element of an array ;)
HTH

_________
broquaint

  • Comment on Re: Re: Re: Generating a random string of chars, easily.

Replies are listed 'Best First'.
Re: Re: Re: Re: Generating a random string of chars, easily.
by Sihal (Pilgrim) on Nov 14, 2002 at 16:03 UTC
    I really like the word automagically, it really fits with perl. :)