Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^3: Equivalency of Code

by DrHyde (Prior)
on Feb 08, 2005 at 05:39 UTC ( #428992=note: print w/replies, xml ) Need Help??

in reply to Re^2: Equivalency of Code
in thread Equivalency of Code

The point is that $x++ and $x += 1 don't just fiddle with the value of $x. Those statements also have values themselves. If a bit of code is to be equivalent to another, then it needs to both have the same side-effects and the same value as the other does.

I try not to think about operator overloading or tieing :-)

Replies are listed 'Best First'.
Re^4: Equivalency of Code
by Anonymous Monk on Feb 08, 2005 at 05:57 UTC
    The statements are presented where in void context - and in void context, there's no return value.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://428992]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2023-12-11 06:52 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (41 votes). Check out past polls.