[Perl] my quiz (easy)

Omer Zak omerz at actcom.co.il
Wed Oct 23 04:58:40 PDT 2002


What is to happen if I call the sub more than 62 times with N==1 (or more
than 3844 times with N==2)?
(If you allow all characters with ASCII codes between 0 and 255, this only
changes the numbers to 256 and 65536 respectively.)
                                             --- Omer
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html

On Wed, 23 Oct 2002, Shlomo Yona wrote:

> Hello.
>
> Write a sub which receives some integer number
> greater than zero (lets call the number N), and
> return a string of N characters (over [A-Za-z0-9]).
>
> Calling the sub within the same run of the program should
> guarantee no two strings of length N are equal (i.e. all the
> strings of same length are uniqe).




More information about the Perl mailing list