On Wednesday, November 20, 2002, at 06:56 PM, Craig A. Berry wrote:
Heh - guilty as implicitly charged. =)At 5:27 PM +1100 11/20/02, Ken Williams wrote:On Wednesday, November 20, 2002, at 04:06 PM, Michael G Schwern wrote:
2.) my($key) forces list context but the result of a match can only be
stored in a scalar lvalue
3.) The result of a match is just a boolean, not the thing matched, so
$key would never have the unadorned macro name but that should be in $1.
Nope, the original code would work.You are of course correct that list context should capture matched values (Camel 3, p. 150).However, I think code has to compile before it will work :-)
Mainly I wanted to make sure that the list context thingy was understood. I didn't try this code, because, well, I'm not on VMS. =)
-Ken