[Israel.pm] Perl Advocacy
gabor at pti.co.il
Wed Dec 29 12:03:46 PST 2004
On Wed, 29 Dec 2004, Gaal Yahas wrote:
> I didn't say I was convinced having such a unified view was a bad thing.
> So I'll say it now :)
> Hashes are not arrays, and arrays are not hashes. As I said in my first
> post to this thread, you can write use Perl's tie mechanism to write a
> hashish array. Mostly you would need to keep a high watermark for the
> tied object, and write some code in STORE (you have no FETCHSIZE for
> hashes) to overcome sparsity.
Hmm, this seems familiar. I think I wrote a module with some similar
level of stupidity. But at least it got my name on CPAN.
> (I guess perl could be modified so each hash has its own default
> associated sorting method. Hell, you could modify the parser to
> inhibit default sorting when it recognizes a user-defined sorter
> is used. But that adds lots of complexity. Think deep data
I am lucky there are clever people around me or I would already
code in ..... (put your favorite language here :)
More information about the Perl