even though the $buffer is value-passed, rather than ref-passed.
That's hard to believe since Perl always passes arguments by reference, never by value. You seem to be confusing "passing by reference" and "passing a reference". @_ contains aliases to the values passed to the function (rather than the a copy of the values), so modifying elements of @_ modifies the parameters in the caller.
In reply to Re: How $clientSocket->recv( $buffer, $length) pass the data back by a value-passed?
by ikegami
in thread How $clientSocket->recv( $buffer, $length) pass the data back by a value-passed?
by sunshine_august
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |