Let's say that I want

   $expression?;

to mean the same thing as the statement

   $_ = $expression;

That is, any statement that ends with a '?;' instead of a ';'
evaluates in scalar context instead of void context and stores the
result as the topic '$_'.  (I was going to suggest '?' intead of '?;',
but a quick review of the specs pointed out that this would be
ambiguous wrt the ? prefix operator.)

Is perl 6 powerful enough to enable this sort of thing with its
existing tools, or would the parser need to be altered?

--
Jonathan "Dataweaver" Lang

Reply via email to