in reply to period in strings

You never need to "wonder". Googling Perl uninitialized value would have pointed you towards something like this.