Jonathan Lang skribis 2006-10-19 18:27 (-0700):
> 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 th
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