could be written as$p += cs_req => qw(basic_cs math_req); $p += basic_cs => qw(intro_rec comp_org adv_prog); $p += intro_req => 'intro_cs'; $p += intro_req => qw(introI introII);
If anyone is bored and wants to write this (a simple source filter should do it), please let me know when it's done.$p += cs_req => basic_cs math_req; $p += basic_cs => intro_rec comp_org adv_prog; $p += intro_req => intro_cs; $p += intro_req => introI introII;
UpdateHowever the attempt to use an entire list as the second argument to a binary operator with overload failed: the first argument is the object ($p) and second argument is the first value of the list and the rest of the list is ignored... so I guess I will revert to a less fancy way of doing this:
$p->assert(cs_req => qw(basic_cs math_req));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use mode quotewords; # someone write it
by tadman (Prior) on Jul 31, 2001 at 12:44 UTC |