Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Comprehending Binary :=

by raptor (Sexton)
on Oct 06, 2001 at 20:43 UTC ( [id://117220]=note: print w/replies, xml ) Need Help??


in reply to Re: Comprehending Binary :=
in thread Comprehending Binary :=

if it is really easily evealuated it wll be cute, i didn't thought it will work that way :")
That way it will be possible to say :

$x := $y + 5; ...code... $x := $z + 12 if cond1; ...code... $x := 6 + $p if cond2; ...code... print $x

Now think if both cond1 and cond2 succeed ... in a normal assigment u will calculate $x three times.(what if the calculation is very complex).
In our case it will be calculated only when we call 'print'..
On the other hand using several subs for this thing is waste, not to mention that the call to sub is slow... So if I'm right := is/can-be-used-as :

1. binding
2. alaising
3. simple-sub (mostly for expressions)
4. assignment
any other ideas.. :")

=====
raptor

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-20 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found