QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I determine the version of Perl/Tk that I am running?

comp.lang.perl.tk FAQ
With an up to date perl installation one may query the local perl setup and all extensions via the command: perldoc perllocal For the Tk extension: version numbering has changed recently and determining the version of Perl/Tk that you are running now depends on what version you are running: Tk-b10 (and higher) has changed to $Tk::VERSION (rather than the older "$Tk:Version") to be consistent with other packages.

What is Perl/Tk?

comp.lang.perl.tk FAQ
Perl/Tk (also known as pTk or ptk) is a collection of modules and code that attempts to wed the easily configured Tk 8 widget toolkit to the powerful lexigraphic, dynamic memory, I/O, and object-oriented capabilities of Perl 5. In other words, it is an interpreted scripting language for making widgets and programs with Graphical User Interfaces (GUI). (Examples of widget programs [not necessarily written in Perl/Tk] include xterm, xclock, most web-browsers, etc.

How can I determine which version of RADIUS I am running?

NJDEP Air Quality Permitting Program (AQPP) - RADIUS
To determine what version of RADIUS is currently installed on your machine click the "Help" item on the menu bar and select "About." You will presented with a screen indicating the version of RADIUS you are using.

How do I write scripts in Perl/Tk?

comp.lang.perl.tk FAQ
Start your script as you would any perl script (e.g. #!/usr/bin/perl, #!/usr/local/bin/perl, #!/opt/bin/perl, [built static? then #!/usr/bin/tkperl], whatever, see the perlrun(1) man page for more information).

How do I call Tcl code from Perl/Tk?

comp.lang.perl.tk FAQ
Assuming that you have a pressing need to call Tcl from Perl/Tk then one "official way" to so would be via the ->send() and the ->Receive() methods. It is also worth noting that you can still have access to a complete Tcl script from perl via the perl system, or '' (backtick), or even exec mechanisms. Just be careful with I/O waits and return values if you try one of these approaches. Further suggestions may be found in the various perlipc files at: ftp://ftp.perl.

Is there something equivalent to wish in Perl/Tk?

comp.lang.perl.tk FAQ
The idea of wish is that you read from <STDIN> and evaluate each statement. The standard way to do this in Perl/Tk is to use the tkpsh script that comes in your Perl/Tk build directory. Another elegant way to get wish like behavior in Perl/Tk is to use rmt which you can find in perl5/Tk/demos in your Perl/Tk distribution. When you run rmt you already have Tk.pm set up for you so you can start typing things like $mmm = new MainWindow; etc. at the rmt: prompt.

Is there a debugger specifically for Perl/Tk?

comp.lang.perl.tk FAQ
Not for the latest version - but the -w switch and use strict; are always helpful with debugging as they provide informative error messages. You can, of course, run under the standard perl debugger using the -d switch like so: perl -d myscript But it is recommended that you set you breakpoints carefully since just the calls to ManWindow->new require many steps. Older information): Gurusamy Sarathy <gsar@engin.umich.

Is there a GUI builder in Perl/Tk?

comp.lang.perl.tk FAQ
Work has reputedly (January 1996) started on porting a Tcl/Tk GUI builder known as SpecTcl for use with Perl/Tk. For the Tcl/Tk SpecTcl kit see: ftp://ftp.sunlabs.com/pub/tcl/SpecTcl-*.tar.[gz|Z] and address questions about SpecTcl to <spectcl@tcl.eng.sun.com>. In <news:ANDREAS.96Mar24234521@marvin.berlin.de> Andreas Koschinsky <marvin@logware.

How do I compile Perl/Tk scripts?

comp.lang.perl.tk FAQ
brings a new and exciting answer to this question: PAR, a "Cross-Platform Packaging and Deployment tool", originally developed by Autrijus Tang. Before PAR, the only public support for Perl/Tk "compilation" was in the Dr.

What are some of the primary differences between Tcl/Tk and Perl/Tk?

comp.lang.perl.tk FAQ
Considering that both interpreters/(compiler) for Tcl and Perl were written in C for original use on Unix computers it is not surprising that there are some similarities between the two languages. Nevertheless, there are a large number of differences between the Tcl language and the Perl language. One thing to keep in mind is that to build, install, and use Perl/Tk one does not need to have Tcl/Tk on hand at all. Perl/Tk is completely independent of Tcl/Tk.

Is there a Tcl/Tk to Perl/Tk translator?

comp.lang.perl.tk FAQ
Nick Ing-Simmons has written a (rather lengthy) tcl2perl script. It is distributed with the Perl/Tk build kit. Please handle carefully! (translation: do not expect it to translate arbitrary tcl code accurately nor even into the most efficient Perl/Tk equivalent. Do go over the converted script with care - and do not forget -w and use strict;.) Thanks Nick :-)

Do I need Tcl/Tk in order to build Perl/Tk?

comp.lang.perl.tk FAQ
Longer answer: In order to build Perl/Tk from source code you do need a recent version of perl, the Perl/Tk source code kit, a graphical user interface library such as Xlib, Presentation Manager, or Win32; a C or C++ compiler, and a make utility. In some rare cases Perl/Tk binaries are distributed for some platforms but that is more the exception than a general rule (see below). If you will be attempting to port Perl/Tk to your platfrom then you might want to consult the document at: http://w4.

What version of Perl are you running?

Hostito Web Hosting - software and systems faqs
We are currently running Perl 5.1.x or greater. If you need a module installed, just let us know and we will do our best to accommodate your needs.

What version or Perl are you running and what is the path to perl?

Value Reseller ::.
The current version of Perl is 5.6.1. The url below displays all the information pertaining to Perl on our system.

How can I determine the version of FrontPage Server Extensions running on my server?

FrontPage Frequently Asked Questions
FrontPage forms only send email if the host server has FrontPage Server Extensions configured to recognize a mail server. You can direct your host to the FP Server Extensions Resource Kit for information on how to properly set up hosting for FrontPage users. America Online (AOL) uses unique proprietary dialer software. This article describes several items you should keep in mind if you are using FrontPage with America Online's Internet software.

What widget types are available under Perl/Tk?

comp.lang.perl.tk FAQ
InputOnly There are (a lot of) other [compound|composite|constructs] available too. You can also synthesize new widgets out of these primitives using perl5's object-oriented multiple inheritance features. You can even build entirely new widget primitives from raw C (XS) code then use and re-use that. (Perl 5 is extremely configurable.) A good introduction to the primitives and how they may be used in conjunction with each other may be found in the widget demo script.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact