my $foo = 4; print "baz$foo bar"; # works OK, the compiler recognizes $foo, thanks to the space print "$foobar"; # won't work, the compiler will not recognize $foo, but look for a variable named $foobar, which does not exist print "${foo}bar"; # now fixed, the compiler can recognize $foo thanks to the curlies