Next | Tricks of the Wizards | 43 |
sub PI () { 3 }
Now you can use PI and get 3:
$circum = 2 * PI * $r;
PI is still read-only:
PI = 3;
Can't modify constant item in scalar assignment at ...
() enables special function-call syntax
This incantation also enables inlining optimization
Next | Copyright © 2003 M. J. Dominus |