Binary Assignment Ops, cont.
- Same with numeric operators
$count = 3; $count *= 4; $count /= 6;
- Analagous to
(define count (/ (* 3 4) 6))
- We can be Scheme, too!
$count = 3 * 4 / 6;
| CPU: Perl, Fall 2005 | Perl, Week 2: Arrays, Hashes, Control Structures | #5 |
$count = 3; $count *= 4; $count /= 6;
(define count (/ (* 3 4) 6))
$count = 3 * 4 / 6;
| Copyright © 2005 Ian Langworth |