additionally,
be aware that there is no 'real' casting in Perl like there is in other languages that type their vars. Once you have an integer in $a, there is nothing to keep you from sticking a float in again.
$a = int(3.2); # now $a is 3
$a = $a/2; # now $a is 1.5
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.