[Bioperl-l] using %packages in Makefile.PL

Nathan S. Haigh n.haigh at sheffield.ac.uk
Wed Sep 27 09:18:05 UTC 2006


Sendu Bala wrote:
> Nathan S. Haigh wrote:
>> My brains dead and it's too late for me to think.... :o)
>>
>> PREREQ_PM in Makefile.PL takes a hash reference where the key is the
>> module name and the value is the minimum version required, or zero if no
>> minimum is required. How can I use %packages to provide this?
>>
>> ugh, this should be easy but my head hurts! :o(
>
> There's lots of ways to do it, but a simple, explicit, easy to follow
> way:
>
> my %prereq;
> while (my ($key, $value) = each %packages) {
>   my ($version) = split("/", $value);
>   $prereq{$key} = $version;
> }
>
> ...
> PREREQ_PM => \%prereq;
>
I tied this, and it didn't seem to work - maybe it will now with a
refreshed head :o)

Nath



More information about the Bioperl-l mailing list