Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Perl/TK with Windows

by strat (Canon)
on Jul 30, 2003 at 10:54 UTC ( #279136=note: print w/replies, xml ) Need Help??

in reply to Perl/TK with Windows

As one of my precessors said, I'd use Activestate Perl (Version 806 -> .msi), because there is Tk alread integrated.

Perl under Windows is about the same as unter Linux, if you don't rely on external programs or interfaces (but nearly all of the plattform-independend modules run fine). Under Windows, scripts are not called by the Shebang-line, but by associating the ending of the script (e.g. .pl) to perl (which is done automatically by the installer).

For getting rid of the nasty shell-window with tk-Scripts when the script is running, I'd rename the extension to something like .ptk and associate it with wperl.exe, about like in the following (be sure to adapt paths to your perl/bin-Directory) typed in the shell (cmd.exe on winNT/2k/XP; I don't know if this also works with under Win9x/ME):

assoc .ptk=PerlTk ftype PerlTk=c:\perl\bin\wperl.exe
After that, you can just execute your script by double-clicking on it, or typing it's name (e.g. script.ptk in the shell).

Some time ago, there were problems with geometry management under Win9x/ME, but not under WinNT/2k/XP. (e.g. if you resized a window) But I don't know if they have already been fixed, because I haven't written anything for Win9x/ME for ages.

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://279136]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-08-18 09:48 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (298 votes). Check out past polls.