#!/usr/bin/perl $x = 3; $y = 5; $x += 1; # same thing as $x = $x + 1; $z = $x + $y; print "$z = $x + $y\n"; $x /= 2; print "x = $x\n"; # prints x = 2 # example of turning integer to floating point $y /= 2; print "y = $y\n"; # prints y = 2.5