http://www.perlmonks.org?node_id=1061501

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Syntax check of the program (perl 5.16.3 64-bit (threaded or otherwise) & Tk 804.031 on CentOS 6 64-bit) causes core dump (but not when it is just run as in perl file) ...

use Tk; # Remove "BEGIN" and get no core dump. BEGIN { our $MW = MainWindow->new(); } __END__ test-tk.pl syntax OK . (1): 0 0x2ba31f0 NV f=00000002 undef(1) SV = IV(0x2ba31e0) at 0x2ba31f0 REFCNT = 1 FLAGS = () IV = 0

There is no problem with combinations of ...

... FWIW. Has anybody else seen the problem?