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

Torsten Seemann torsten.seemann at infotech.monash.edu.au
Wed Sep 27 08:48:27 UTC 2006


>> 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)

Try:
	my ($version) = split m{/}, $value;

I'm not sure what split() does with a string as a pattern (except when it is 
just a space) ?

-- 
Torsten Seemann
Victorian Bioinformatics Consortium, Monash University, Australia



More information about the Bioperl-l mailing list