On Oct 14, 2004, at 7:17 PM, Randy W. Sims wrote:
File::Spec > 0.82 &&
Cwd &&
(( {OSNAME} == 'MSWin32' &&
( mod_perl < 2 &&
Apache::Foo &&
Apache::Bar ) ||
( mod_perl >= 2 &&
Apache2::Foo &&
Apache2::Bar ))
||
( {OSNAME} == 'Linux' &&
( mod_perl < 2 &&
Apache::Blah &&
Apache::Blek ) ||
( mod_perl >= 2 &&
Apache2::Blah &&
Apache2::Blek ))) &&
YAML > 1
Seems like a reasonable example. My only question has to do with the
use of operators: Could you perhaps use "eq" instead of "==" where
comparing strings? It's more Perl-like that way:
(( {OSNAME} eq 'MSWin32' &&
Oh, and I'm assuming that this discussion an example does not supersede
the previous case we discussed, where there's an either/or distinction
where the user has to choose or specify some sort of command-line
option (that is, mysql vs. Pg). Correct?
Cheers,
David
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
|