Grouping perl foreach values

Damien Elmes clug at
Tue Jul 9 18:07:35 EST 2002

Michael Still <mikal at> writes:

> On Tue, 9 Jul 2002, Damien Elmes wrote:
>> Alex Satrapa <grail at> writes:
>> > On Tuesday, July 9, 2002, at 11:33 , Michael Still wrote:
>> >
>> >> I was trying to avoid an array of references though.
>> >
>> > Why?
>> I feel inclined to chirp in now and just say that expressing complex data
>> structures are not exactly obvious in perl. Michael's reluctance to delve into
>> arrays of references are probably a testament to this.
> I think this sums it up. I wasn't too interested in finding the spare
> brain capacity to complicate things this was. The data is a triple of
> (return type, function name, arguement list).
> Is there are trivial was of implementing a structure which has these three
> elements?

Not really trivial. You need to use either references to 3 element lists, or
a variant on what Alex suggested, a list of hashes references.


Damien Elmes

More information about the linux mailing list