Ken Perl wrote:

: what is the meaning of non-lvalue in the error?

    Binary operators take a left hand side value and
a right hand side value. The equal (=) operator, for
example, assigns the right hand side to the left hand
side.

    left hand side = right hand side


    Some values can only belong to the right hand
side of a binary operator. A constant, for example,
cannot be on the left hand side.

    4 = 5; # Not allowed. 4 is a constant.


    Another (perhaps more correct?) name for the left
hand side value is "lvalue" and a subroutine cannot
(normally) be an lvalue.

    center() = 5; # Produces the non-lvalue error.





HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to