It's just like ($x + $y) * $z. The contents of the parens are evaluated first, and the result is used as the operand of the operation outside the parens.
Scalar assignment returns its LHS as an lvalue, so
is the same as($bname = $fname) =~ s#.*\\##s;
$bname = $fname; $bname =~ s#.*\\##s;
In reply to Re: Assign Contains RegEx WTF??
by ikegami
in thread Assign Contains RegEx WTF??
by Gary_Lacey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |