in reply to starters querry

If you are using a unix shell (which it sounds like you are not), the output could be made more apparent by printing a newline (\n):
$a=2; $b=$a + $a; print $b, "\n";