in reply to Random number generator
I think you could improve the efficiency of this module a little. Your constructor creates a hash but then doesn't store anything in it. Might I suggest replacing this line:
return bless {}, shift;
with this:
return bless \undef, shift;
I'm also wondering if maybe the motivation for this module is related to the posting date :-)
Update: Yes, I know if you tried that in real life you'd get a 'Modification of a read-only value attempted' error - some people are taking this far too seriously :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Random number generator
by BrowserUk (Patriarch) on Apr 01, 2003 at 08:52 UTC | |
by Abigail-II (Bishop) on Apr 01, 2003 at 09:43 UTC | |
by BrowserUk (Patriarch) on Apr 01, 2003 at 10:12 UTC | |
|
Re: Re: Random number generator
by bart (Canon) on Apr 01, 2003 at 15:29 UTC | |
by Chady (Priest) on Apr 01, 2003 at 17:21 UTC |