Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The link to the documentation is https://perldoc.perl.org/perlop.html#Assignment-Operators
"Similarly, a list assignment in list context produces the list of lvalues assigned to, and a list assignment in scalar context returns the number of elements produced by the expression on the right hand side of the assignment." I don't understand. Can you monks please explain to me and give me examples of what this sentence means? "Unlike in C, the scalar assignment operator produces a valid lvalue. Modifying an assignment is equivalent to doing the assignment and then modifying the variable that was assigned to." I don't get it either. Please clarify to me I beg. In reply to Not understanding 2 sentences in perldoc by Anonymous Monk
|
|