[Kc] Perl 'Expert' Quiz-of-the-Week #24 (Module dependency evaluation)

David Nicol davidnicol at gmail.com
Fri Oct 8 17:03:03 CDT 2004


i read this three times and nowhere found a concise statement of what exactly
MJD is looking for.  He hints at it near the end, but never actually
states the problem
like "this weeks problem is to..."  What gives?

oh, here it is, buried in the middle.

On Thu, 23 Sep 2004 08:43:11 -0500, Garrett Goebel
<garrett at scriptpro.com> wrote:
>  
> 
> 
> This weeks quiz is to write a module (Prereq::Expr) that can take a
> specification of the type described above, and evaluate it to determine if
> the requirements are satisfied. The specification is the value assigned to
> the 'requires' key in the examples above. 
> 
> (Prereq::Expr->eval( $dist{requires} )). It can be either a hash, string, or
> array, whichever makes more sense. But, it should be able to handle the old
> style requirements. 
>


More information about the kc mailing list