Installing the Perl Tk module under Windows

Source: Internet
Author: User

First, install the ActivePerl, the installation process to automatically add the PATH environment variable, so that after installation, you do not need to manually modify the PATH environment variable;

Bring up the command-line window via cmd, enter ppm, and then enter to open the Perl Package Manager.

Click the Warehouse button, search the repository for the TK module, then right-click, select Intall, and then tap the green arrow icon at the top right to start the installation;

After the installation is complete, write a Hello World example and save the file as tk_hello_world.pl:

#/usr/bin/perl-w UseTk; Usewarnings; UseStrict;my $MW= mainwindow->new ();$MW->geometry ("200x100");$MW->title ("Hello World");$MW->label (-text ="Hello World"),Pack(-side =" Left"); Mainloop;

Then, in the command line, type Perl tk_hello_world.pl, which pops up:

Run successfully!

Reference: http://www.ibm.com/developerworks/cn/aix/library/au-perltkmodule/

Installing the Perl Tk module under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.