Yes, my scalar test didn't work. See node Re^4: Multi-stage flip-flop? ( till() - proof of concept)
But then I changed the test:
while (<DATA>) { chomp; mff(qr/alpha/ => \&s1, qr/beta/ => \&s2, \&c3 => \&s3, !!c4() ) or print "*:$_\n"; }
which imposes scalar context on the call to c4, so it worked correctly:
Evaluating condition 4 *:This is Evaluating condition 4 1:the alpha Evaluating condition 4 1:but not Evaluating condition 4 1:the omega Evaluating condition 4 2:Now the beta Evaluating condition 4 Evaluating condition 3 2:progressing to Evaluating condition 4 Evaluating condition 3 3:the gamma Evaluating condition 4 3:and finally Evaluating condition 4 *:the omega Evaluating condition 4 *:Did this work?
Clearly should be mentioned in the documentation for any future version of mff.
In reply to Re^7: Multi-stage flip-flop? ( till() - proof of concept)
by RonW
in thread Multi-stage flip-flop?
by RonW
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |