my $FileName = "jimbo"; my $t = ".tm"; print $FileName$t; # this just wont work - what you REALLY want is my $fullFileName = $FileName . $t; # the . joins them together - called "concatenation" - do a PM search on this keyword print $fullFileName; # prints 'jimbo.tm'