in reply to 2 basic PerlTK questions

1) If you're using ActivePerl in Windows, simply use wperl.exe instead of perl.exe.

2) It'd start by checking if PerlEXE has a "gui" or "no console" option.

See these threads: Tk on Win32 - how to avoid background console window, Win32::Start Perl/Tk Script Without Annoying DOS Window and Suppressing Console in PerlApp Script for more goodies on the subject.