If you want to coerce that to boolean context, the question mark has to be in front of the expression:
(Don't know if ~~ or ? has the higher precedence, so you might need parenthesis. But I don't think so ;)my $bool = ? $z ~~ m/\d+/
In reply to Re^3: Pugs configuration - file locations
by moritz
in thread Pugs configuration - file locations
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |