Are you a stranger around here, or are you just hiding behind anonymity to make a silly remark?
Why is this not a module? It's self contained. Nice clean interface. Oh right, it's not object-oriented. Wait a minute, it uses closures... you can spawn different generators in the same program to your heart's desire.
Maybe I'm missing something obvious, but if you can tell me why this is not a module I'd sure like to learn why.
update: ok, in light of you subsequent comment it makes more sense, but why couldn't you have said so in the first place, instead of making a useless content-free remark? --g r i n d e r
| [reply] |
At the time of posting, I didn't see aany of the lines below. Who knows, maybe the author was updating the node at the time. (the remark was genuine)
10: package RandomSequence;
11: require Exporter;
12: @RandomSequence::ISA = 'Exporter';
13: @RandomSequence::EXPORT_OK = qw(randomSequenceGenerator filterGe
+nerator);
14: %RandomSequence::EXPORT_TAGS = (
15: 'ALL' => [ qw(randomSequenceGenerator filterGenerator) ]
16: );
Hmm, what's going on here?
Random Sequence generation and Filteringby bikeNomad on Jul 19, 2001 at 01:43
Re: Random Sequence generation and Filteringby Anonymous Monk on Jul 19, 2001 at 12:22 | [reply] [d/l] |
Ah, I saw the comment and added the Exporter stuff. Sorry to confuse anyone.
| [reply] |