Subject: | perl 5.16.3 + Tk 804.031 core dumps on syntax check when a window is made in BEGIN block |
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__
Problem reported in http://www.perlmonks.org/?node_id=1061501