Thanks a lot for your kind help. Actually, your last reply made me realise a bigger problem than the ones I had. I hadn't realised X11 does not come pre-installed in MAC OS Xs. After doing some search, I saw there is nothing you can do to avoid X11, unless you use Tkx. So, I will either have to go with Tkx (that does not need X11 to run) instead of Tk or use Netbeans for my gui part and create apps for the non-gui Perl stuff I am using.