I'd guess this is a problem with the locale. In my case an unknown locale adds 8, rather than 10, additional lines, but still:
$ LANG=C ./foo.pl Global symbol "$foo" requires explicit package name at ./foo.pl line 3. Execution of ./foo.pl aborted due to compilation errors. $ LANG=sq ./foo.pl perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_GB:", LC_ALL = (unset), LC_COLLATE = "C", LANG = "sq" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Global symbol "$foo" requires explicit package name at ./foo.pl line 3. Execution of ./foo.pl aborted due to compilation errors.