User defined constants
You can make your own constants in Perl. (something like #define PI or const
inst PI)
use constant {PI=>3.14, PI2=>3.1416};
print PI ."\n". PI2;
inst PI)
use constant {PI=>3.14, PI2=>3.1416};
print PI ."\n". PI2;
0 Comments:
Post a Comment
<< Home