. is used to concatenate strings...
If you want to pass a variable you will have to use . to add it to the string and print it out.
print "Hi, my name is " . $name . "and I like soccer";
print "Hello there this is part 1" . " and this is part 2";
If you don't use it and try to print a string with multiple entries you'll get a parse error.