http://www.perlmonks.org?node_id=11120008

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

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.