On Jul 19, 2004, at 9:24 AM, Randy W. Sims wrote:
features => { ... dbi_support => { description => "Can read & write databases", requires => { DBI >= 1.0, db_driver => q{ [mysql] || [pg] }, [mysql] => { DBD::mysql => 1.5, DataTime::Format::mysql => 0 }, [pg] => { DBD::Pg => 0, DataTime::Format::Pg => 0 }, }, },
This way most of the parsing is already done; Most all the terms are already broken down into indivisible fields. It's more human readable (IMO), though, perhaps a little more verbose. The macros help diffuse the complexity of expressions.
Even less parsing:
features => {
...
dbi_support => {
description => "Can read & write databases",
requires => {
DBI >= 1.0,
db_driver => [qw(mysql pg)],
[mysql] => {
DBD::mysql => 1.5,
DataTime::Format::mysql => 0
},
[pg] => {
DBD::Pg => 0,
DataTime::Format::Pg => 0
},
},
},Regards,
David
smime.p7s
Description: S/MIME cryptographic signature
