| 導購 | 订阅 | 在线投稿
分享
 
 
當前位置: 王朝網路 >> perl >> Perl/TkFAQ-7.哪裏有Perl/Tk的文檔
 

Perl/TkFAQ-7.哪裏有Perl/Tk的文檔

2008-05-18 21:55:28  編輯來源:互聯網  简体版  手機版  評論  字體: ||
 
 
  原文:

  7. Where is the Documentation?

  A great deal of Perl/Tk documentation gets installed as part of the Tk extension building process. Hence, a great deal of documentation is probably residing on your computer already.

  More documentation is "in the works": there are several books dealing with perl/Tk in progress, an ongoing magazine column and a growing FAQ (the document you are presently reading).

  The additional material you may want to look at can be split into Perl/Tk, Perl, Tcl/Tk, and X documentation categories: Perl/Tk Specific Documentation The man pages

  With up to date Tk build kits the various perl/Tk pod documents are converted to your systems' helpfile format and installed as part of the perl/Tk "make install" process. If you have a recent verion of perl/Tk try something like man 3 Tk::Tk if this does not work check with you system administrator for the proper MANPATH.

  In your Tk build directory there should be a doc/ sub-directory in which there are a number of .htm files (after you make install). These files were originally Tcl/Tk man pages (from the man* sub-directories), but the *.htm files have been converted to Perl syntax and rendered in HTML format. You can use the Perl/Tk web browser to view them locally with a command like: tkweb index.html

  or you may view them on the web itself by installing them in a web-server directory tree, or by pointing a browser at: http://w4.lns.cornell.edu/~pvhp/ptk/doc/ The newsgroup

  The newsgroup name is comp.lang.perl.tk and this FAQ will be periodically posted to that group (as well as a few other newsgroups). The newsgroup and/or the ptk mailing list are the appropriate places to post questions - yes even simple ones! (Although answers may sometimes be long in coming ... :-( The nTk/pTk mailing list

  The mailing list is an excellent supplement and complement to the newsgroup comp.lang.perl.tk. All messages mailed to the list are forwarded to the newsgroup. (But not all messages posted to the newsgroup are forwarded to the list.) Some Perl/Tk experts only have access to e-mail.

  The nTk/pTk Mailing List Archive is a very useful source of information too, and is accesible at either http://pubweb.bnl.gov/~ptk/

  or via ftp at ftp://ftp.ccd.bnl.gov/pub/ptk/archives/

  (both in the USA). You may search the contents of another ptk mailing list hypertext archive thanks to a cgi-bin script written by Achim Bohnet in Germany at: http://www.rosat.mpe-garching.mpg.de/mailing-lists/ptk/

  You must subscribe to the mailing list to receive e-mail from the list. To subscribe to the mailing list you can send mail to majordomo@lists.stanford.edu (i.e. mailto:majordomo@lists.stanford.edu) with the following command in the body of your e-mail message: subscribe ptk joe.user@somewhere (Joe D. User)

  To send a message to all recipients of the mailing list send e-mail to mailto:ptk@lists.stanford.edu.

  To remove yourself from the mailing list send e-mail to majordomo@lists.stanford.edu (i.e. mailto:majordomo@lists.stanford.edu) with the following command in the body of your e-mail message: unsubscribe ptk joe.user@somewhere (Joe D. User)

  Where instead of "joe.user@somewhere" you might very well like to substitute another string of characters.

  (Please note: one does not send unsubscribe messages to the ptk list. One does send "unsubscribe ptk" messages to a special e-mail list administration program. In the case of the ptk list you send to majordomo@lists.stanford.edu. You must of course do this from the account and computer from which you initially subscribed. In particular if you are viewing the hypertext version of this FAQ you may not be able to unsubscribe from majordomo@lists.stanford.edu by following the mailto: hyperlinks - if your web-browser account/computer is different from your subscribe to e-mail-lists account/computer (the details of this might depend on which browser you use though). Thank you for your cooperation on this.) The demo programs

  Examine (and try running) the code in your Tk#/ build directory tree. You might also be interested in test-running the code that gets installed:

  * or perl5/site_perl/Tk/demos/ or perl5/site_perl/Tk/demos/widget_lib/ directories (recent Tk's).

  * Tk#/ or perl5/Tk/demos/ or perl5/Tk/demos/widget_lib/ directories (older versions e.g. Tk-b8).

  In order to determine where on your system the perl5/ directory is located type the following one-line perl command (at your shell prompt - this is not a line from a perl script): perl -e 'print join("\n",@INC,"");'

  If that command does not turn up a perl5/ directory then make sure that you are running perl 5 with the following: perl -v (this too can simply be entered at the shell prompt). More on the pod & man documentation

  [As previously mentioned a great number of Tcl/Tk man pages are converted from *roff format to html format and are to be found within your Tk build directory tree in the doc/ sub-directory. These documents form an authoritative and extensive reference set for Perl/Tk.]

  The raw pod files that come with the Tk kit are examples of the perl "plain old documentation" format and are just about human readable as they are (e.g. you may more, cat, or less them; or send them to a printer). Many (not all) of the perl/Tk pod documents get are converted to *roff format and are installed in you perl man page area as part of the perl/Tk build process.

  If you have a recent version of perl/Tk try something like man 3 Tk::Tk. If this does not work check your manual page path with perl -MConfig -e 'print $Config{man1dir},"\n",$Config{man3dir},"\n"'

  And if you still cannot find the manual pages check with your system administrator for the proper MANPATH and/or Tk installation version.

  "Raw" .pod (such as UserGuide.pod) can be viewed with the tkpod hypertext pod viewer. Raw .pod may also be run through any one or more of a large numbers of re-formatting perl filters. Such programs include pod2man, pod2text, pod2html, pod2latex, etc. (these get installed when you install perl). Other translators pod2texinfo, pod2fm, pod2pdf, etc., also exist. Check a CPAN site for these scripts if you do not already have them.

  A command line like the following (but subject to local variations) should work for you: tkpod site_perl/Tk/UserGuide.pod

  or if you like Unix manual page style: pod2man perl5/Tk/UserGuide.pod | nroff -man | more

  (note that I am showing examples with almost full file path names - the alternative would be to cd into the appropriate directory then type: pod2man UserGuide.pod | nroff -man | more

  There should even be a perl script to run that above command for you. It is executed as: perldoc UserGuide

  Note that if there is pod like documentation in a perl module you may also execute tkpod (or perldoc) on it as in: tkpod ColorEditor.pm

  (please note that unfortunately, not all .pm mod files have pod embedded.)

  If you have misplaced your tkpod program but still want that GUI look and feel (like xman) make the appropriate changes to the following script: #!/usr/bin/perl use Tk; use Tk::Pod; my $m = new MainWindow; $m -> Pod(-file => 'ColorEditor.pm'); # or use command line path/filename: # $m -> Pod(-file => $ARGV[0]); MainLoop; A miscellany of internet perl/Tk resources includes:World Wide Web - perl/Tk man pages http://pubweb.bnl.gov/~ptk/doc/index.html http://w4.lns.cornell.edu/~pvhp/ptk/doc/ http://w4.lns.cornell.edu/~pvhp/ptk/pod/The Perl/Tk Newsgroup comp.lang.perl.tkPerl Newsgroups comp.lang.perl.misc comp.lang.perl.anounce comp.lang.perl.modulesTcl Newsgroups comp.lang.tcl comp.lang.tcl.announceMiscellaneous Newsgroups comp.answers news.answersPerl/Tk FAQ-Archives (ftp sites) [Note: FAQ may be many separate files] (see also CPAN sites) ftp://rtfm.mit.edu/pub/usenet/comp.lang.perl.tk ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/comp/lang/perl/tk ftp://ftp.uu.net/usenet/news.answers/perl-faq/ptk-faq ftp://ftp.ccd.bnl.gov/pub/ptk/ 130.199.54.188 ftp://ftp.ccd.bnl.gov/pub/ptk/ptkFAQ.txt 130.199.54.188 ftp://ftp.wpi.edu/perl5/pTk-FAQ 130.215.24.209 ftp://perl.com/pub/perl/doc/ptkFAQ.gz 199.45.129.30 ftp://perl.com/pub/perl/doc/ptkFAQ.ps.gz 199.45.129.30WWW-FAQ for perl/Tk http://www.perltk.org/contrib/ptkTOC.html World Wide Web - perl/Tk info sites http://pubweb.bnl.gov/~ptk/ http://fxfx.com/kgr/compound/ (Perl Tk Compound Widget Page) http://www.perltk.org/contrib/ptkIMG.html (FAQ image supplement) http://www.perltk.org/contrib/etc/ http://www.perltk.org/contrib/misc/ http://www.perltk.org/contrib/PNMTYAK/ http://www.mirai.com/wks/The Mailing list majordomo@lists.stanford.edu ptk@lists.stanford.edu Perl Specific Documentation

  There are a growing number Perl books available. A more complete Perl-bibliographic discussion than that given here is available in the Perl FAQ or at: http://www.perl.com/perl/info/books.html

  For Perl 5 there is (as of September 1996) a "New Camel" by Larry Wall, Tom Christiansen, and Randal L. Schwartz, with Stephen Potter.

  Programming Perl 2nd Edition

  Larry Wall, Tom Christiansen, & Randal L. Schwartz with Stephen Potter

  (c) 1996 O'Reilly & Associates Inc.

  ISBN 1-56592-149-6 (English)

  A forthcoming book from major Perl/Tk contributor Sriram Srinivasan is:

  Advanced Perl Programming

  By Sriram Srinivasan

  1st Edition August 1997 (est.)

  O'Reilly & Associates Inc.

  ISBN: 1-56592-220-4, Order Number: 2204

  440 pages (est.), $34.95 (est.)

  A second edition of the Llama is due out soon too:

  Learning Perl, 2ndEdition

  Randal L. Schwartz

  June 1997 (est.) O'Reilly & Associates Inc.

  ISBN 1-56592-284-0 (English)

  The two early Perl books by Schwartz and Wall are very helpful (even if they do pertain to perl 4 and not 5. Beware that perl/Tk makes extensive use of perl 5 object-oriented features.):

  Learning Perl (The Llama)

  Randal L. Schwartz

  Copyright (c) 1993 O'Reilly & Associates Inc.

  ISBN 1-56592-042-2 (English)

  ISBN 2-84177-005-2 (French)

  ISBN 3-930673-08-8 (German)

  ISBN 4-89502-678-1 (Japanese)

  Programming Perl (The Camel)

  Larry Wall and Randal L. Schwartz

  Copyright (c) 1991 O'Reilly & Associates Inc.

  ISBN 0-937175-64-1 (English)

  ISBN 3-446-17257-2 (German) (Programmieren in Perl, translator: Hanser Verlag)

  ISBN 4-89052-384-7 (Japanese)

  There is also some Perl5 (book material) information at: http://www.metronet.com/1h/perlinfo/perl5/

  Jon Orwant (the organizer of the comp.lang.perl.tk newgroup) has a book on Perl 5 that has a chapter that discusses the Tk extension. (Please note that it is mostly about Perl 5, there is a some discussion of four simple Perl/Tk programs, but it is not a book wholly devoted to Perl/Tk.) It is nevertheless a good introduction to object-oriented Perl 5 programming. The relevant info:

  Perl 5 Interactive Course

  Jon Orwant

  (c) 1996 The Waite Group Press

  A Division of SAMS Publishing, Corte Madera, CA USA

  ISBN: 1-57169-064-6

  The Perl 5 Quick Reference Guide (may require LaTeX for installation) can be obtained from any CPAN ftp site. Detailed location information is also available at the author's website: http://www.xs4all.nl/~jvromans/perlref.html

  The quick reference guide has also been turned into a small Nutshell handbook:

  Perl 5 Desktop Reference

  Johan Vromans

  Copyright (c) February 1996 O'Reilly & Associates Inc.

  ISBN: 1-56592-187-9; Order number: 1879

  Eric F. Johnson has a book that discusses many perl5 for Unix vs. perl5 for Windows NT issues. He includes a final chapter with extensive discussion of the Tk extension and the ->Text() widget in particular. The information on that book is:

  Cross-Platform Perl

  (c) 1996 Eric F. Johnson

  MIS:Press/M&T Books

  ISBN: 1-55851-483-X

  Kamran Husain and Robert F. Breedlove have written a perl 5 book that includes a chapter on Tk with some discussion of Menu()s. That book is:

  Perl 5 Unleashed

  Kamran Husain and Robert F. Breedlove

  (c) 1996 Sams Publishing, Indianapolis, IN

  ISBN: 0-672-30891-6

  There is also a "Perl 5 How-To" book available that contains a great deal of erroneous information about perl/Tk. Among other things that book wrongly mentions that it is necessary to have a complete Tcl/Tk library installed on one's system to compile the Tk extension to perl. (They are incorrect - it is only necessary to have the appropriate perl version, libc and Xlib, the Tk extension is otherwise "self-contained").

  There is also a book on perl web client. It features a a chapter on perl/Tk that was written by Nancy Walsh:

  Web Client Programming with Perl

  Clinton Wong

  1st Edition March 1997

  O'Reilly & Associates Inc.

  ISBN: 1-56592-214-X; Order number: 214X

  Additional book information may be found at Tom Christiansen's perl & cgi books page, or at his Perl-related Book Reviews page.

  The multi-part perl 5 manual pages are available (assuming they have been installed in your MANPATH, type man perl, man perlmod etc.).

  The perl 5 man pages are also available on the web at a number of locations. In general the more recent the documentation the more helpful it is.

  In addition to the CPAN ftp source sites, a miscellany of internet perl resources includes: Newsgroups comp.lang.perl.misc comp.lang.perl.announce comp.lang.perl.modules comp.infosystems.www.authoring.cgi comp.answers news.answersPerl FAQ-Archives (ftp sites) [Note: FAQ may be many separate files](as of 5.004 the FAQ ships in pod format with perl) (see also the CPAN sites) North America ftp://rtfm.mit.edu/pub/usenet/news.answers/perl-faq/ ftp://ftp.uu.net/usenet/news.answers/perl-faq/ 192.48.96.9 ftp://ftp.khoros.unm.edu/pub/perl/faq.gz 198.59.155.28 Europe ftp://ftp.cs.ruu.nl/pub/NEWS.ANSWERS/perl-faq/ 131.211.80.17 ftp://src.doc.ic.ac.uk/packages/perl/FAQ 146.169.2.10Gopher Perl FAQ gopher://gopher.metronet.com/11/perlinfo/faqWWW-FAQ for Perl http://www.perl.com/perl/faq/ http://www.smartpages.com/bngfaqs/comp/lang/perl/top.html http://www.smartpages.com/bngfaqs/comp/lang/perl/misc/top.html http://www.smartpages.com/bngfaqs/comp/lang/perl/announce/top.html http://www.cis.ohio-state.edu/hypertext/faq/usenet/perl-faq/top.htmlPerl for Win32 FAQ (discusses Win95) http://www.perl.org/CPAN/doc/FAQs/win32/Perl_for_Win32_FAQ.htmlPerl info sitesGopher (gopher:70) perl info sites USA gopher://gopher.metronet.com/11h/perlinfoWorld Wide Web (http:80) perl info sites USA http://www.yahoo.com/Computers_and_Internet/Languages/Perl/index.html http://www.perl.com/ http://www.khoros.unm.edu/staff/neilb/perl/home.html http://www.khoros.unm.edu/staff/neilb/perl/metaFAQ/ http://www.metronet.com/perlinfo/ http://www.metronet.com/perlinfo/perl5.html (Perl 5) http://www.eecs.nwu.edu/perl/perl.html http://cesr39.lns.cornell.edu/public/perl/ http://www.virtualschool.edu/mon/Perl.html http://www.hermetica.com/technologia/unexec/ http://www.oac.uci.edu/indiv/ehood/perlWWW/ http://web.sau.edu/~mkruse/www/scripts/ http://orwant.www.media.mit.edu/the_perl_journal/ http://www.perl.com/Architext/AT-allperl.html http://www.mispress.com/introcgi/ http://www.walrus.com/~smithj/webcan/ http://web.syr.edu/~chsiao05/cps600_project.html http://www.iftech.com/classes/webdev/webdev_perl.htm http://www.cc.iastate.edu/perlmenu/ http://www.ora.com/www/item/cgi_prog.html http://www.netaxs.com/~joc/perlring.html UK http://pubweb.nexor.co.uk/public/perl/perl.html http://www.bio.cam.ac.uk/web/form.html Elsewhere http://www.oasis.leo.org/perl/00-index.htmlWeb references to Perl mailing lists http://www.perl.com/perl/info/mailing-lists.html http://www.nicoh.com/cgi-bin/lwgate/PERL5-PORTERS/ http://www.hut.fi/~jhi/perl5-porters.html http://www.rosat.mpe-garching.mpg.de/mailing-lists/ Tcl/Tk Specific Documentation

  The two Tcl/Tk books by Ousterhout and Welch are very good starting points (you must however, translate the tcl-isms to perl in the sample scripts):

  Tcl and the Tk Toolkit

  John K. Ousterhout

  Copyright (c) 1994 Addison-Wesley Publishing Company

  ISBN 0-201-63337-X (alk. paper)

  LOC QA76.73.T44097 1994; 005.13'3--dc20

  Practical Programming in Tcl and Tk

  Brent Welch

  Copyright (c) 1995 Prentice Hall

  ISBN 0-13-182007-9

  Within the tclsh or wish shells your manpath includes the tcl/tk man pages (which may not be in your login MANPATH). Thus from the % prompt within either shell type commands like: % man -k Tk

  The Tcl/Tk Reference Guide is also a source of useful information. Although it's Tcl specific most perl/Tk commands can be, more or less, easily derived from it. [Note that in perl/Tk the names of some functions and some configuration options have changed slightly from their Tcl/Tk counterparts. With recent versions of perl/Tk a great many functions start with an upper case letter and continue with all lower case letters (e.g. there is a perl/Tk Entry widget but no entry widget), and many configuration options are all lower case (e.g. there is a perl/Tk highlightthickness option but no highlightThickness option).] You may fetch the Tcl/Tk Reference Guide (may require LaTeX for installation) from: ftp://ftp.slac.stanford.edu/software/TkMail/tkref-4.0.1.tar.gz 134.79.18.30 ftp://ftp.aud.alcatel.com/tcl/docs/tkref-4.0.1.tar.gz 198.64.191.10

  There are a number of other Tcl/Tk resources on the internet including: Newsgroups comp.lang.tcl comp.lang.tcl.announce comp.infosystems.www.authoring.cgi comp.answers news.answersFAQ-Archive (ftp) [Note: Tcl FAQ may be many files, Tk FAQ is one file] ftp://ftp.aud.alcatel.com/tcl/docs/ 198.64.191.10 ftp://rtfm.mit.edu/pub/usenet/news.answers/tcl-faq ftp://rtfm.mit.edu/pub/usenet/news.answers/tcl-faq/tkWWW-FAQ for Tcl/Tk http://www.teraform.com/~lvirden/tcl-faq/ http://www.smartpages.com/faqs/tcl-faq/top.html http://www.smartpages.com/bngfaqs/comp/lang/tcl/top.html http://www.cis.ohio-state.edu/hypertext/faq/usenet/tcl-faq/top.html http://www.cis.ohio-state.edu/hypertext/faq/bngusenet/comp/lang/tcl/top.html http://www.sco.com/Technology/tcl/Tcl.htmlWorld Wide Web - Tcl/Tk info sites Canada http://web.cs.ualberta.ca/~wade/Auto/Tcl.html UK http://http2.brunel.ac.uk:8080/~csstddm/TCL2/TCL2.html http://www.cis.rl.ac.uk/proj/TclTk/ USA http://www.yahoo.com/Computers_and_Internet/Languages/Tcl_Tk/index.html http://www.sunlabs.com/research/tcl/docs.html http://www.sunlabs.com/research/tcl/4.0.html http://www.sco.com/Technology/tcl/Tcl.html http://www.neosoft.com/tcl/ http://www.elf.org/tcltk-man-html/contents.htmlTcl/Tk - miscellaneous extensions ftp://ftp.cme.nist.gov/pub/expect/ http://www.cs.hut.fi/~kjk/porttk.html http://tix.sourceforge.net/ http://www.ece.cmu.edu/afs/ece/usr/svoboda/www/th/homepage.html http://www.tcltk.com/ http://www.neosoft.com/tcl/TclX.html http://www.eolas.com/eolas/webrouse/tcl.htm http://www.se.cuhk.hk/~hkng2/big5tk/big5tk.html http://www.cs.uoregon.edu/~jhobbs/work/ [BLT etc.] X Documentation

  Tk certainly makes the generation of GUI code a lot easier than hard coding things in traditional compiled languages such as C, C++, or Lisp. Nevertheless there is a very large body of X documentation out there that will assist all widget and GUI builders with issues of design, implementation, etc. Hence it is good practice to be informed of the general design goals of X itself as well as the other toolkits that have been built on top of X.

  There are a number of X resources on the internet including:

  Newsgroups comp.windows.x comp.windows.x.announce comp.windows.x.appsX FAQs: ftp://ftp.x.org/contrib/faqs/X FAQ on the World Wide Web: http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-1 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-2 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-3 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-4 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-5 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-6 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-7X Window System book info on the Web: http://www.x.org/ftp/contrib/docs/Xbibliography.OReilly http://www.ora.com/catalog/v1/ http://www.ora.com/catalog/v2/ http://www.ora.com/catalog/v3/ http://www.ora.com/catalog/v4/ http://www.ora.com/catalog/v5/ http://www.ora.com/catalog/v6a/ http://www.ora.com/catalog/v6b/ http://www.ora.com/catalog/v6c/ http://www.ora.com/catalog/r6/noframes.html http://www.ora.com/oracom/prog/flanart.htmlWorld Wide Web - X Window System info sites http://www.x.org/ http://www.x.org/consortium/GettingX.html http://www.x.org/consortium/x_info.html http://www.x.org/consortium/R6.1doc/man/X11/ http://www.wolfram.com/~cwikla/widget/ http://www.zeta.org.au/~rosko/pigui.htm http://www.rahul.net/kenton/xsites.html http://www.unx.com/DD/txaCurrent.shtml

  譯文:

  7. 哪裏有Perl/Tk的文檔?

  其實,Tk模塊的安裝包中就帶有大量的Perl/Tk文檔,所以,可能你的系統上已經有很多相關的文檔了。

  更多的文檔還在計劃中:有些針對Perl/Tk的書正在創作過程中(譯者注:可能有些書現在已經面世了,比如:Learning Perl/Tk,Mastering Perl/Tk等等)。同時一個關于Perl/Tk的期刊也在建設中,當然,還有一個逐步豐富的「常見問題」(就是你現在看到的這個文檔)。

  其它你可能會想要參考的文檔資料大致可以分爲Perl/Tk,Perl,Tcl/Tk和X幾類:

  Perl/Tk 專門文檔

  用戶手冊

  伴隨著Tk包的不斷更新,各種各樣的Perl/Tk的簡易老式文檔都被轉換系統幫助文件的格式,並在你安裝Perl/Tk的過程中(make install)同時被安裝到了你的系統中。如果你已經安裝了較新版本的Perl/Tk,你可以試試「man 3 Tk::Tk」命令(只對Unix系統)。如果不行,你最好找一下你的系統管理員簡稱一下MANPATH環境變量是否設置正確。

  在你的Tk安裝目錄中應該有一個名爲doc/的子目錄,在那裏有很多.htm的文件(在你使用了make install之後)。這些文件都是原始的Tcl/Tk的手冊頁(來自man*子目錄),但是這些*.htm文件已經被轉換成了Perl的語法,並且使用了從超文本的格式。你可以使用Perl/Tk的網絡浏覽器來在當前目錄中閱讀它們:

  tkweb index.html

  或者,你也可以把它們安裝到一個web服務器的目錄裏,然後在網絡上浏覽它們。還有,你還可以在下面的網址浏覽這些文檔:

  http://w4.lns.cornell.edu/~pvhp/ptk/doc/

  新聞組

  Perl/Tk的新聞組的名字是comp.lang.perl.tk,這個「常見問題」文檔會被定期的張貼在這個新聞組裏(就像其它的一些組一樣)。這個新聞組和(或)ptk的郵件列表是張貼Perl/Tk的問題的最合適的地方——即使是非常簡單的!(不過,有時回答會比較慢喲……L)

  nTk/pTk郵件列表

  郵件列表是comp.lang.perl.tk新聞組的很好的補充。所有發到列表中的信息都會被轉發到新聞組中(但不是所有新聞組中的帖子都會被轉發到郵件列表中)。有些Perl/Tk的專家只能通過電子郵件和他們聯系。

  nTk/pTk郵件列表檔案也是非常有用的資源,你可以通過下面的網址訪問:

  http://pubweb.bnl.gov/~ptk/

  或者是通過ftp:

  ftp://ftp.ccd.bnl.gov/pub/ptk/archives/

  (都在美國)。你還可以在下面的網址中對另一個ptk的郵件列表的超文本檔案中查找(感謝德國的Achim Bohnet寫了一個CGI腳本):

  http://www.rosat.mpe-garching.mpg.de/mailing-lists/ptk/

  要從郵件列表中受到郵件,你必須事先訂閱。訂閱的辦法是發如下內容的電子郵件到majordomo@lists.stanford.edu:

  subscribe ptk joe.user@somewhere (Joe D. User)

  其中,你應該替換爲自己的郵件地址和姓名。

  (注:如果需要取消訂閱ptk,你應該發送一個「unsubscribe ptk」的郵件到上面同樣的信箱。但是,你必須用當初訂閱時的帳戶和電腦來完成取消訂閱。特別需要注意的是,如果你是在以超文本格式看這個FAQ,因爲各種浏覽器的差別,你也許無法通過點擊我們給出的mailto的超鏈接來取消訂閱——如果你的浏覽器關聯的帳戶或電腦與你訂閱時的不同的話。感謝您的合作。)

  演示程序

  在安裝完Tk以後,你可以檢查並嘗試運行你的Tk安裝目錄中的一些腳本。或者你也許會有興趣測試一下已經安裝的代碼:

  l perl5/site_perl/Tk/demos/或者perl5/site_perl/Tk/demos/widget_lib/目錄(新版本的Tk)

  l perl5/Tk/demos/或者perl5/Tk/demos/widget_lib/目錄(舊版本,如Tk-b8)

  要知道你的系統中安裝的perl5目錄的具體位置,可以在使用如下的perl命令(注意,這是在命令行提示符下使用的,不是在perl的腳本裏面):

  perl -e 'print join("\n",@INC,"");'

  如果從上面的命令結果中沒有perl5的目錄,那麽請用下面的命令來確定你確實已經安裝,並正在使用perl5(這也是只在命令行中鍵入的):

  perl -v

  更多的pod和man文檔

  【前面已經提過,大量的Tcl/Tk的手冊頁已經由*roff格式轉換成了html文檔,並且就在你的Tk安裝目錄中的doc/子目錄中。這些文檔應該是Perl/Tk方面最權威和全面的參考資料。

  這些Tk安裝包中的pod文檔就是Perl的簡易老式文檔的例子,這種格式是可讀的(例如,你可以用more,cat或者less來查看它們,甚至直接打印)。很多(不是所有的)Perl/Tk的簡易老式文檔都是由*roff格式轉換而來的,並且在Perl/Tk安裝的過程中自動的被作爲Perl的手冊頁裝入。

  如果你已經安裝了新版本的Perl/Tk,你可以嘗試使用如下的命令來獲取Tk的幫助:

  man 3 Tk::Tk (只對Unix系統可以)

  如果這樣不行的話,請使用下面的方法檢查你系統的手冊頁搜索路徑:

  perl -MConfig -e 'print $Config{man1dir},"\n",$Config{man3dir},"\n"'

  如果這樣仍然不行,請向你的系統管理員咨詢正確的MANPATH參數設置和所安裝的Tk的版本。

  原始的.pod文件(例如UserGuide.pod)可以使用tkpod超文本pod閱讀器來查看,也可以先用那些各種各樣的重格式化的Perl腳本處理後再閱讀。這些程序包括pod2man,pod2text,pod2html,pod2latex等等(這些腳本都是跟隨Perl一起安裝的)。其它的格式轉換程序還包括pod2texinfo,pod2fm,pod2pdf等等。如果你的系統中沒有這些程序,可以到某個CPAN的站點去下載。

  在命令行中可以使用類似(取決于你的系統)下面的命令:

  tkpod site_perl/Tk/UserGuide.pod

  或者,如果你喜歡Unix手冊的風格:

  pod2man perl5/Tk/UserGuide.pod | nroff –man | more

  (注意,這裏我們使用的是完整的路徑,還有一種方法是先cd到文件所在的目錄中,然後使用:

  pod2man UserGuide.pod | nroff –man | more

  另外,還有一個Perl的腳本可以直接幫你執行上面的命令,如下:

  perldoc UserGuide

  注意如果一個Perl的模塊中包含了pod格式的文檔說明,你也可以直接對它使用tkpod(或者perldoc),例如:

  tkpod ColorEditor.pm

  (請注意,不幸的是,並非所有的.pm模塊文件都內嵌有pod文檔說明。)

  如果你找不到系統中的tkpod程序,而你又希望能有圖形用戶界面的閱讀工具,可以使用下面的腳本(請先做適當的修改):

  #!/usr/bin/perl

  use Tk;

  use Tk::Pod;

  my $m = new MainWindow;

  $m -> Pod(-file => 'ColorEditor.pm');

  # or use command line path/filename:

  # $m -> Pod(-file => $ARGV[0]);

  MainLoop;

  互聯網上的Perl/Tk資源

  互聯網上的Perl/Tk手冊頁

  http://pubweb.bnl.gov/~ptk/doc/index.html

  http://w4.lns.cornell.edu/~pvhp/ptk/doc/

  http://w4.lns.cornell.edu/~pvhp/ptk/pod/

  Perl/Tk新聞組

  comp.lang.perl.tk

  Perl新聞組

  comp.lang.perl.misc

  comp.lang.perl.anounce

  comp.lang.perl.modules

  Tcl新聞組

  comp.lang.tcl

  comp.lang.tcl.announce

  其它混雜的新聞組

  comp.answers

  news.answers

  Perl/Tk常見問題檔案(ftp站點) [注意: FAQ可能是很多文件]

  ftp://rtfm.mit.edu/pub/usenet/comp.lang.perl.tk

  ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/comp/lang/perl/tk

  ftp://ftp.uu.net/usenet/news.answers/perl-faq/ptk-faq

  ftp://ftp.ccd.bnl.gov/pub/ptk/ 130.199.54.188

  ftp://ftp.ccd.bnl.gov/pub/ptk/ptkFAQ.txt 130.199.54.188

  ftp://ftp.wpi.edu/perl5/pTk-FAQ 130.215.24.209

  ftp://perl.com/pub/perl/doc/ptkFAQ.gz 199.45.129.30

  ftp://perl.com/pub/perl/doc/ptkFAQ.ps.gz 199.45.129.30

  互聯網上的perl/Tk常見問題

  http://www.perltk.org/contrib/ptkTOC.html perl/Tk信息站點

  http://pubweb.bnl.gov/~ptk/

  http://fxfx.com/kgr/compound/ (Perl/Tk組合組件主頁)

  http://www.perltk.org/contrib/ptkIMG.html (常見問題的圖形補充)

  http://www.perltk.org/contrib/etc/ http://www.perltk.org/contrib/misc/ http://www.perltk.org/contrib/PNMTYAK/ http://www.mirai.com/wks/

  郵件列表

  majordomo@lists.stanford.edu

  ptk@lists.stanford.edu

  (譯者:下面的內容都不是針對Perl/Tk的了,而且大部分是一些鏈接,所以就略去了——實在太多了……大家自己點進去看吧!)

  (注:因爲此原始網頁上copy下來的內容格式在這裏總是不對,所以爲了方便大家閱讀,我把後面的內容調整後貼在了下面)

  Perl Specific Documentation

  There are a growing number Perl books available. A more complete Perl-bibliographic discussion than that given here is available in the Perl FAQ or at: http://www.perl.com/perl/info/books.html

  For Perl 5 there is (as of September 1996) a "New Camel" by Larry Wall, Tom Christiansen, and Randal L. Schwartz, with Stephen Potter.

  Programming Perl 2nd Edition

  Larry Wall, Tom Christiansen, & Randal L. Schwartz with Stephen Potter

  (c) 1996 O'Reilly & Associates Inc.

  ISBN 1-56592-149-6 (English)

  A forthcoming book from major Perl/Tk contributor Sriram Srinivasan is:

  Advanced Perl Programming

  By Sriram Srinivasan

  1st Edition August 1997 (est.)

  O'Reilly & Associates Inc.

  ISBN: 1-56592-220-4, Order Number: 2204

  440 pages (est.), $34.95 (est.)

  A second edition of the Llama is due out soon too:

  Learning Perl, 2ndEdition

  Randal L. Schwartz

  June 1997 (est.) O'Reilly & Associates Inc.

  ISBN 1-56592-284-0 (English)

  The two early Perl books by Schwartz and Wall are very helpful (even if they do pertain to perl 4 and not 5. Beware that perl/Tk makes extensive use of perl 5 object-oriented features.):

  Learning Perl (The Llama)

  Randal L. Schwartz

  Copyright (c) 1993 O'Reilly & Associates Inc.

  ISBN 1-56592-042-2 (English)

  ISBN 2-84177-005-2 (French)

  ISBN 3-930673-08-8 (German)

  ISBN 4-89502-678-1 (Japanese)

  Programming Perl (The Camel)

  Larry Wall and Randal L. Schwartz

  Copyright (c) 1991 O'Reilly & Associates Inc.

  ISBN 0-937175-64-1 (English)

  ISBN 3-446-17257-2 (German) (Programmieren in Perl, translator: Hanser Verlag)

  ISBN 4-89052-384-7 (Japanese)

  There is also some Perl5 (book material) information at: http://www.metronet.com/1h/perlinfo/perl5/

  Jon Orwant (the organizer of the comp.lang.perl.tk newgroup) has a book on Perl 5 that has a chapter that discusses the Tk extension. (Please note that it is mostly about Perl 5, there is a some discussion of four simple Perl/Tk programs, but it is not a book wholly devoted to Perl/Tk.) It is nevertheless a good introduction to object-oriented Perl 5 programming. The relevant info:

  Perl 5 Interactive Course

  Jon Orwant

  (c) 1996 The Waite Group Press

  A Division of SAMS Publishing, Corte Madera, CA USA

  ISBN: 1-57169-064-6

  The Perl 5 Quick Reference Guide (may require LaTeX for installation) can be obtained from any CPAN ftp site. Detailed location information is also available at the author's website: http://www.xs4all.nl/~jvromans/perlref.html

  The quick reference guide has also been turned into a small Nutshell handbook:

  Perl 5 Desktop Reference

  Johan Vromans

  Copyright (c) February 1996 O'Reilly & Associates Inc.

  ISBN: 1-56592-187-9; Order number: 1879

  Eric F. Johnson has a book that discusses many perl5 for Unix vs. perl5 for Windows NT issues. He includes a final chapter with extensive discussion of the Tk extension and the ->Text() widget in particular. The information on that book is:

  Cross-Platform Perl

  (c) 1996 Eric F. Johnson

  MIS:Press/M&T Books

  ISBN: 1-55851-483-X

  Kamran Husain and Robert F. Breedlove have written a perl 5 book that includes a chapter on Tk with some discussion of Menu()s. That book is:

  Perl 5 Unleashed

  Kamran Husain and Robert F. Breedlove

  (c) 1996 Sams Publishing, Indianapolis, IN

  ISBN: 0-672-30891-6

  There is also a "Perl 5 How-To" book available that contains a great deal of erroneous information about perl/Tk. Among other things that book wrongly mentions that it is necessary to have a complete Tcl/Tk library installed on one's system to compile the Tk extension to perl. (They are incorrect - it is only necessary to have the appropriate perl version, libc and Xlib, the Tk extension is otherwise "self-contained").

  There is also a book on perl web client. It features a a chapter on perl/Tk that was written by Nancy Walsh:

  Web Client Programming with Perl

  Clinton Wong

  1st Edition March 1997

  O'Reilly & Associates Inc.

  ISBN: 1-56592-214-X; Order number: 214X

  Additional book information may be found at Tom Christiansen's perl & cgi books page, or at his Perl-related Book Reviews page.

  The multi-part perl 5 manual pages are available (assuming they have been installed in your MANPATH, type man perl, man perlmod etc.).

  The perl 5 man pages are also available on the web at a number of locations. In general the more recent the documentation the more helpful it is.

  In addition to the CPAN ftp source sites, a miscellany of internet perl resources includes:

  Newsgroups

  comp.lang.perl.misc

  comp.lang.perl.announce

  comp.lang.perl.modules

  comp.infosystems.www.authoring.cgi

  comp.answers

  news.answers

  Perl FAQ-Archives (ftp sites) [Note: FAQ may be many separate files]

  (as of 5.004 the FAQ ships in pod format with perl)

  (see also the CPAN sites)

  North America

  ftp://rtfm.mit.edu/pub/usenet/news.answers/perl-faq/

  ftp://ftp.uu.net/usenet/news.answers/perl-faq/ 192.48.96.9

  ftp://ftp.khoros.unm.edu/pub/perl/faq.gz 198.59.155.28

  Europe

  ftp://ftp.cs.ruu.nl/pub/NEWS.ANSWERS/perl-faq/ 131.211.80.17

  ftp://src.doc.ic.ac.uk/packages/perl/FAQ 146.169.2.10

  Gopher Perl FAQ

  gopher://gopher.metronet.com/11/perlinfo/faq

  WWW-FAQ for Perl

  http://www.perl.com/perl/faq/

  http://www.smartpages.com/bngfaqs/comp/lang/perl/top.html

  http://www.smartpages.com/bngfaqs/comp/lang/perl/misc/top.html

  http://www.smartpages.com/bngfaqs/comp/lang/perl/announce/top.html

  http://www.cis.ohio-state.edu/hypertext/faq/usenet/perl-faq/top.html

  Perl for Win32 FAQ (discusses Win95) http://www.perl.org/CPAN/doc/FAQs/win32/Perl_for_Win32_FAQ.html

  Perl info sites

  Gopher (gopher:70) perl info sites

  USA

  gopher://gopher.metronet.com/11h/perlinfo

  World Wide Web (http:80) perl info sites

  USA

  http://www.yahoo.com/Computers_and_Internet/Languages/Perl/index.html

  http://www.perl.com/

  http://www.khoros.unm.edu/staff/neilb/perl/home.html

  http://www.khoros.unm.edu/staff/neilb/perl/metaFAQ/ http://www.metronet.com/perlinfo/

  http://www.metronet.com/perlinfo/perl5.html (Perl 5)

  http://www.eecs.nwu.edu/perl/perl.html

  http://cesr39.lns.cornell.edu/public/perl/

  http://www.virtualschool.edu/mon/Perl.html

  http://www.hermetica.com/technologia/unexec/

  http://www.oac.uci.edu/indiv/ehood/perlWWW/

  http://web.sau.edu/~mkruse/www/scripts/

  http://orwant.www.media.mit.edu/the_perl_journal/

  http://www.perl.com/Architext/AT-allperl.html

  http://www.mispress.com/introcgi/

  http://www.walrus.com/~smithj/webcan/

  http://web.syr.edu/~chsiao05/cps600_project.html

  http://www.iftech.com/classes/webdev/webdev_perl.htm

  http://www.cc.iastate.edu/perlmenu/

  http://www.ora.com/www/item/cgi_prog.html

  http://www.netaxs.com/~joc/perlring.html

  UK

  http://pubweb.nexor.co.uk/public/perl/perl.html

  http://www.bio.cam.ac.uk/web/form.html

  Elsewhere

  http://www.oasis.leo.org/perl/00-index.html

  Web references to Perl mailing lists

  http://www.perl.com/perl/info/mailing-lists.html

  http://www.nicoh.com/cgi-bin/lwgate/PERL5-PORTERS/

  http://www.hut.fi/~jhi/perl5-porters.html

  http://www.rosat.mpe-garching.mpg.de/mailing-lists/

  Tcl/Tk Specific Documentation

  The two Tcl/Tk books by Ousterhout and Welch are very good starting points (you must however, translate the tcl-isms to perl in the sample scripts):

  Tcl and the Tk Toolkit

  John K. Ousterhout

  Copyright (c) 1994 Addison-Wesley Publishing Company

  ISBN 0-201-63337-X (alk. paper)

  LOC QA76.73.T44097 1994; 005.13'3--dc20

  Practical Programming in Tcl and Tk

  Brent Welch

  Copyright (c) 1995 Prentice Hall

  ISBN 0-13-182007-9

  Within the tclsh or wish shells your manpath includes the tcl/tk man pages (which may not be in your login MANPATH). Thus from the % prompt within either shell type commands like:

  % man -k Tk

  The Tcl/Tk Reference Guide is also a source of useful information. Although it's Tcl specific most perl/Tk commands can be, more or less, easily derived from it. [Note that in perl/Tk the names of some functions and some configuration options have changed slightly from their Tcl/Tk counterparts. With recent versions of perl/Tk a great many functions start with an upper case letter and continue with all lower case letters (e.g. there is a perl/Tk Entry widget but no entry widget), and many configuration options are all lower case (e.g. there is a perl/Tk highlightthickness option but no highlightThickness option).] You may fetch the Tcl/Tk Reference Guide (may require LaTeX for installation) from:

  ftp://ftp.slac.stanford.edu/software/TkMail/tkref-4.0.1.tar.gz 134.79.18.30

  ftp://ftp.aud.alcatel.com/tcl/docs/tkref-4.0.1.tar.gz 198.64.191.10

  There are a number of other Tcl/Tk resources on the internet including:

  Newsgroups

  comp.lang.tcl

  comp.lang.tcl.announce

  comp.infosystems.www.authoring.cgi

  comp.answers

  news.answers

  FAQ-Archive (ftp) [Note: Tcl FAQ may be many files, Tk FAQ is one file]

  ftp://ftp.aud.alcatel.com/tcl/docs/ 198.64.191.10

  ftp://rtfm.mit.edu/pub/usenet/news.answers/tcl-faq

  ftp://rtfm.mit.edu/pub/usenet/news.answers/tcl-faq/tk

  WWW-FAQ for Tcl/Tk

  http://www.teraform.com/~lvirden/tcl-faq/ http://www.smartpages.com/faqs/tcl-faq/top.html

  http://www.smartpages.com/bngfaqs/comp/lang/tcl/top.html

  http://www.cis.ohio-state.edu/hypertext/faq/usenet/tcl-faq/top.html

  http://www.cis.ohio-state.edu/hypertext/faq/bngusenet/comp/lang/tcl/top.html

  http://www.sco.com/Technology/tcl/Tcl.html

  World Wide Web - Tcl/Tk info sites

  Canada

  http://web.cs.ualberta.ca/~wade/Auto/Tcl.html

  UK

  http://http2.brunel.ac.uk:8080/~csstddm/TCL2/TCL2.html

  http://www.cis.rl.ac.uk/proj/TclTk/

  USA

  http://www.yahoo.com/Computers_and_Internet/Languages/Tcl_Tk/index.html

  http://www.sunlabs.com/research/tcl/docs.html

  http://www.sunlabs.com/research/tcl/4.0.html

  http://www.sco.com/Technology/tcl/Tcl.html

  http://www.neosoft.com/tcl/

  http://www.elf.org/tcltk-man-html/contents.html

  Tcl/Tk - miscellaneous extensions

  ftp://ftp.cme.nist.gov/pub/expect/

  http://www.cs.hut.fi/~kjk/porttk.html

  http://tix.sourceforge.net/ http://www.ece.cmu.edu/afs/ece/usr/svoboda/www/th/homepage.html

  http://www.tcltk.com/ http://www.neosoft.com/tcl/TclX.html

  http://www.eolas.com/eolas/webrouse/tcl.htm http://www.se.cuhk.hk/~hkng2/big5tk/big5tk.html

  http://www.cs.uoregon.edu/~jhobbs/work/ [BLT etc.]

  X Documentation

  Tk certainly makes the generation of GUI code a lot easier than hard coding things in traditional compiled languages such as C, C++, or Lisp. Nevertheless there is a very large body of X documentation out there that will assist all widget and GUI builders with issues of design, implementation, etc. Hence it is good practice to be informed of the general design goals of X itself as well as the other toolkits that have been built on top of X.

  There are a number of X resources on the internet including:

  Newsgroups

  comp.windows.x

  comp.windows.x.announce

  comp.windows.x.apps

  X FAQs:

  ftp://ftp.x.org/contrib/faqs/

  X FAQ on the World Wide Web:

  http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-1

  http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-2

  http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-3

  http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-4

  http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-5

  http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-6

  http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-7

  X Window System book info on the Web:

  http://www.x.org/ftp/contrib/docs/Xbibliography.OReilly

  http://www.ora.com/catalog/v1/

  http://www.ora.com/catalog/v2/

  http://www.ora.com/catalog/v3/

  http://www.ora.com/catalog/v4/

  http://www.ora.com/catalog/v5/

  http://www.ora.com/catalog/v6a/

  http://www.ora.com/catalog/v6b/

  http://www.ora.com/catalog/v6c/

  http://www.ora.com/catalog/r6/noframes.html

  http://www.ora.com/oracom/prog/flanart.html

  World Wide Web - X Window System info sites

  http://www.x.org/

  http://www.x.org/consortium/GettingX.html

  http://www.x.org/consortium/x_info.html

  http://www.x.org/consortium/R6.1doc/man/X11/

  http://www.wolfram.com/~cwikla/widget/

  http://www.zeta.org.au/~rosko/pigui.htm

  http://www.rahul.net/kenton/xsites.html

  http://www.unx.com/DD/txaCurrent.shtml
 
 
 
上一篇《Perl/TkFAQ-6.如何編譯安裝》
下一篇《Perl/TkFAQ-8.如何寫Perl/Tk腳本》
 
 
 
 
 
 
日版寵物情人插曲《Winding Road》歌詞

日版寵物情人2017的插曲,很帶節奏感,日語的,女生唱的。 最後聽見是在第8集的時候女主手割傷了,然後男主用嘴幫她吸了一下,插曲就出來了。 歌手:Def...

兄弟共妻,我成了他們夜裏的美食

老鍾家的兩個兒子很特別,就是跟其他的人不太一樣,魔一般的執著。兄弟倆都到了要結婚的年齡了,不管自家老爹怎麽磨破嘴皮子,兄弟倆說不娶就不娶,老父母爲兄弟兩操碎了心...

如何磨出破洞牛仔褲?牛仔褲怎麽剪破洞?

把牛仔褲磨出有線的破洞 1、具體工具就是磨腳石,下面墊一個硬物,然後用磨腳石一直磨一直磨,到把那塊磨薄了,用手撕開就好了。出來的洞啊很自然的。需要貓須的話調幾...

我就是掃描下圖得到了敬業福和愛國福

先來看下敬業福和愛國福 今年春節,支付寶再次推出了“五福紅包”活動,表示要“把欠大家的敬業福都還給大家”。 今天該活動正式啓動,和去年一樣,需要收集“五福”...

冰箱異味産生的原因和臭味去除的方法

有時候我們打開冰箱就會聞到一股異味,冰箱裏的這種異味是因爲一些物質發出的氣味的混合體,聞起來讓人惡心。 産生這些異味的主要原因有以下幾點。 1、很多人有這種習...

《極品家丁》1-31集大結局分集劇情介紹

簡介 《極品家丁》講述了現代白領林晚榮無意回到古代金陵,並追隨蕭二小姐化名“林三”進入蕭府,不料卻陰差陽錯上演了一出低級家丁拼搏上位的“林三升職記”。...

李溪芮《極品家丁》片尾曲《你就是我最愛的寶寶》歌詞

你就是我最愛的寶寶 - 李溪芮 (電視劇《極品家丁》片尾曲) 作詞:常馨內 作曲:常馨內 你的眉 又鬼馬的挑 你的嘴 又壞壞的笑 上一秒吵鬧 下...

烏梅的功效與作用以及烏梅的食用禁忌有哪些?

烏梅,又稱春梅,中醫認爲,烏梅味酸,性溫,無毒,具有安心、除熱、下氣、祛痰、止渴調中、殺蟲的功效,治肢體痛、肺痨病。烏梅泡水喝能治傷寒煩熱、止吐瀉,與幹姜一起制...

什麽是脂肪粒?如何消除臉部脂肪粒?

什麽是脂肪粒 在我們的臉上總會長一個個像脂肪的小顆粒,弄也弄不掉,而且顔色還是白白的。它既不是粉刺也不是其他的任何痘痘,它就是脂肪粒。 脂肪粒雖然也是由油脂...

網絡安全治理:國家安全保障的主要方向是打擊犯罪,而不是處置和懲罰受害者

來源:中國青年報 新的攻擊方法不斷湧現,黑客幾乎永遠占據網絡攻擊的上風,我們不可能通過技術手段杜絕網絡攻擊。國家安全保障的主要方向是打擊犯罪,而不是處置和懲罰...

河南夫妻在溫嶺網絡直播“造人”內容涉黃被刑事拘留

夫妻網絡直播“造人”爆紅   1月9日,溫嶺城北派出所接到南京警方的協查通告,他們近期打掉了一個涉黃直播APP平台。而根據掌握的線索,其中有一對涉案的夫妻主播...

如何防止牆紙老化?牆紙變舊變黃怎麽辦?

如何防止牆紙老化? (1)選擇透氣性好的牆紙 市場上牆紙的材質分無紡布的、木纖維的、PVC的、玻璃纖維基材的、布面的等,相對而言,PVC材質的牆紙最不透氣...

鮮肌之謎非日本生産VS鮮肌之謎假日貨是謠言

觀點一:破日本銷售量的“鮮肌之謎” 非日本生産 近一段時間,淘寶上架了一款名爲“鮮肌之謎的” 鲑魚卵巢美容液,號稱是最近日本的一款推出的全新護膚品,産品本身所...

中國最美古詩詞精選摘抄

系腰裙(北宋詞人 張先) 惜霜蟾照夜雲天,朦胧影、畫勾闌。人情縱似長情月,算一年年。又能得、幾番圓。 欲寄西江題葉字,流不到、五亭前。東池始有荷新綠,尚小如...

關于女人的經典語句

關于女人的經典語句1、【做一個獨立的女人】 思想獨立:有主見、有自己的人生觀、價值觀。有上進心,永遠不放棄自己的理想,做一份自己喜愛的事業,擁有快樂和成就...

未來我們可以和性愛機器人結婚嗎?

你想體驗機器人性愛嗎?你想和性愛機器人結婚嗎?如果你想,機器人有拒絕你的權利嗎? 近日,第二屆“國際人類-機器人性愛研討會”大會在倫敦金史密斯大學落下帷幕。而...

全球最變態的十個地方

10.土耳其地下洞穴城市 變態指數:★★☆☆☆ 這是土耳其卡帕多西亞的一個著名景點,傳說是當年基督教徒們爲了躲避戰爭而在此修建。裏面曾住著20000人,...

科學家稱,人類死亡後意識將在另外一個宇宙中繼續存活

據英國《每日快報》報道,一位科學家兼理論家Robert Lanza博士宣稱,世界上並不存在人類死亡,死亡的只是身體。他認爲我們的意識借助我們體內的能量生存,而且...

《屏裏狐》片頭曲《我愛狐狸精》歌詞是什麽?

《我愛狐狸精》 - 劉馨棋   (電視劇《屏裏狐》主題曲)   作詞:金十三&李旦   作曲:劉嘉   狐狸精 狐狸仙   千年修...

 
 
 
  原文:   7. Where is the Documentation?   A great deal of Perl/Tk documentation gets installed as part of the Tk extension building process. Hence, a great deal of documentation is probably residing on your computer already.   More documentation is "in the works": there are several books dealing with perl/Tk in progress, an ongoing magazine column and a growing FAQ (the document you are presently reading).   The additional material you may want to look at can be split into Perl/Tk, Perl, Tcl/Tk, and X documentation categories: Perl/Tk Specific Documentation The man pages   With up to date Tk build kits the various perl/Tk pod documents are converted to your systems' helpfile format and installed as part of the perl/Tk "make install" process. If you have a recent verion of perl/Tk try something like man 3 Tk::Tk if this does not work check with you system administrator for the proper MANPATH.   In your Tk build directory there should be a doc/ sub-directory in which there are a number of .htm files (after you make install). These files were originally Tcl/Tk man pages (from the man* sub-directories), but the *.htm files have been converted to Perl syntax and rendered in HTML format. You can use the Perl/Tk web browser to view them locally with a command like: tkweb index.html   or you may view them on the web itself by installing them in a web-server directory tree, or by pointing a browser at: http://w4.lns.cornell.edu/~pvhp/ptk/doc/ The newsgroup   The newsgroup name is comp.lang.perl.tk and this FAQ will be periodically posted to that group (as well as a few other newsgroups). The newsgroup and/or the ptk mailing list are the appropriate places to post questions - yes even simple ones! (Although answers may sometimes be long in coming ... :-( The nTk/pTk mailing list   The mailing list is an excellent supplement and complement to the newsgroup comp.lang.perl.tk. All messages mailed to the list are forwarded to the newsgroup. (But not all messages posted to the newsgroup are forwarded to the list.) Some Perl/Tk experts only have access to e-mail.   The nTk/pTk Mailing List Archive is a very useful source of information too, and is accesible at either http://pubweb.bnl.gov/~ptk/   or via ftp at ftp://ftp.ccd.bnl.gov/pub/ptk/archives/   (both in the USA). You may search the contents of another ptk mailing list hypertext archive thanks to a cgi-bin script written by Achim Bohnet in Germany at: http://www.rosat.mpe-garching.mpg.de/mailing-lists/ptk/   You must subscribe to the mailing list to receive e-mail from the list. To subscribe to the mailing list you can send mail to majordomo@lists.stanford.edu (i.e. mailto:majordomo@lists.stanford.edu) with the following command in the body of your e-mail message: subscribe ptk joe.user@somewhere (Joe D. User)   To send a message to all recipients of the mailing list send e-mail to mailto:ptk@lists.stanford.edu.   To remove yourself from the mailing list send e-mail to majordomo@lists.stanford.edu (i.e. mailto:majordomo@lists.stanford.edu) with the following command in the body of your e-mail message: unsubscribe ptk joe.user@somewhere (Joe D. User)   Where instead of "joe.user@somewhere" you might very well like to substitute another string of characters.   (Please note: one does not send unsubscribe messages to the ptk list. One does send "unsubscribe ptk" messages to a special e-mail list administration program. In the case of the ptk list you send to majordomo@lists.stanford.edu. You must of course do this from the account and computer from which you initially subscribed. In particular if you are viewing the hypertext version of this FAQ you may not be able to unsubscribe from majordomo@lists.stanford.edu by following the mailto: hyperlinks - if your web-browser account/computer is different from your subscribe to e-mail-lists account/computer (the details of this might depend on which browser you use though). Thank you for your cooperation on this.) The demo programs   Examine (and try running) the code in your Tk#/ build directory tree. You might also be interested in test-running the code that gets installed:   * or perl5/site_perl/Tk/demos/ or perl5/site_perl/Tk/demos/widget_lib/ directories (recent Tk's).   * Tk#/ or perl5/Tk/demos/ or perl5/Tk/demos/widget_lib/ directories (older versions e.g. Tk-b8).   In order to determine where on your system the perl5/ directory is located type the following one-line perl command (at your shell prompt - this is not a line from a perl script): perl -e 'print join("\n",@INC,"");'   If that command does not turn up a perl5/ directory then make sure that you are running perl 5 with the following: perl -v (this too can simply be entered at the shell prompt). More on the pod & man documentation   [As previously mentioned a great number of Tcl/Tk man pages are converted from *roff format to html format and are to be found within your Tk build directory tree in the doc/ sub-directory. These documents form an authoritative and extensive reference set for Perl/Tk.]   The raw pod files that come with the Tk kit are examples of the perl "plain old documentation" format and are just about human readable as they are (e.g. you may more, cat, or less them; or send them to a printer). Many (not all) of the perl/Tk pod documents get are converted to *roff format and are installed in you perl man page area as part of the perl/Tk build process.   If you have a recent version of perl/Tk try something like man 3 Tk::Tk. If this does not work check your manual page path with perl -MConfig -e 'print $Config{man1dir},"\n",$Config{man3dir},"\n"'   And if you still cannot find the manual pages check with your system administrator for the proper MANPATH and/or Tk installation version.   "Raw" .pod (such as UserGuide.pod) can be viewed with the tkpod hypertext pod viewer. Raw .pod may also be run through any one or more of a large numbers of re-formatting perl filters. Such programs include pod2man, pod2text, pod2html, pod2latex, etc. (these get installed when you install perl). Other translators pod2texinfo, pod2fm, pod2pdf, etc., also exist. Check a CPAN site for these scripts if you do not already have them.   A command line like the following (but subject to local variations) should work for you: tkpod site_perl/Tk/UserGuide.pod   or if you like Unix manual page style: pod2man perl5/Tk/UserGuide.pod | nroff -man | more   (note that I am showing examples with almost full file path names - the alternative would be to cd into the appropriate directory then type: pod2man UserGuide.pod | nroff -man | more   There should even be a perl script to run that above command for you. It is executed as: perldoc UserGuide   Note that if there is pod like documentation in a perl module you may also execute tkpod (or perldoc) on it as in: tkpod ColorEditor.pm   (please note that unfortunately, not all .pm mod files have pod embedded.)   If you have misplaced your tkpod program but still want that GUI look and feel (like xman) make the appropriate changes to the following script: #!/usr/bin/perl use Tk; use Tk::Pod; my $m = new MainWindow; $m -> Pod(-file => 'ColorEditor.pm'); # or use command line path/filename: # $m -> Pod(-file => $ARGV[0]); MainLoop; A miscellany of internet perl/Tk resources includes:World Wide Web - perl/Tk man pages http://pubweb.bnl.gov/~ptk/doc/index.html http://w4.lns.cornell.edu/~pvhp/ptk/doc/ http://w4.lns.cornell.edu/~pvhp/ptk/pod/The Perl/Tk Newsgroup comp.lang.perl.tkPerl Newsgroups comp.lang.perl.misc comp.lang.perl.anounce comp.lang.perl.modulesTcl Newsgroups comp.lang.tcl comp.lang.tcl.announceMiscellaneous Newsgroups comp.answers news.answersPerl/Tk FAQ-Archives (ftp sites) [Note: FAQ may be many separate files] (see also CPAN sites) ftp://rtfm.mit.edu/pub/usenet/comp.lang.perl.tk ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/comp/lang/perl/tk ftp://ftp.uu.net/usenet/news.answers/perl-faq/ptk-faq ftp://ftp.ccd.bnl.gov/pub/ptk/ 130.199.54.188 ftp://ftp.ccd.bnl.gov/pub/ptk/ptkFAQ.txt 130.199.54.188 ftp://ftp.wpi.edu/perl5/pTk-FAQ 130.215.24.209 ftp://perl.com/pub/perl/doc/ptkFAQ.gz 199.45.129.30 ftp://perl.com/pub/perl/doc/ptkFAQ.ps.gz 199.45.129.30WWW-FAQ for perl/Tk http://www.perltk.org/contrib/ptkTOC.html World Wide Web - perl/Tk info sites http://pubweb.bnl.gov/~ptk/ http://fxfx.com/kgr/compound/ (Perl Tk Compound Widget Page) http://www.perltk.org/contrib/ptkIMG.html (FAQ image supplement) http://www.perltk.org/contrib/etc/ http://www.perltk.org/contrib/misc/ http://www.perltk.org/contrib/PNMTYAK/ http://www.mirai.com/wks/The Mailing list majordomo@lists.stanford.edu ptk@lists.stanford.edu Perl Specific Documentation   There are a growing number Perl books available. A more complete Perl-bibliographic discussion than that given here is available in the Perl FAQ or at: http://www.perl.com/perl/info/books.html   For Perl 5 there is (as of September 1996) a "New Camel" by Larry Wall, Tom Christiansen, and Randal L. Schwartz, with Stephen Potter.   Programming Perl 2nd Edition   Larry Wall, Tom Christiansen, & Randal L. Schwartz with Stephen Potter   (c) 1996 O'Reilly & Associates Inc.   ISBN 1-56592-149-6 (English)   A forthcoming book from major Perl/Tk contributor Sriram Srinivasan is:   Advanced Perl Programming   By Sriram Srinivasan   1st Edition August 1997 (est.)   O'Reilly & Associates Inc.   ISBN: 1-56592-220-4, Order Number: 2204   440 pages (est.), $34.95 (est.)   A second edition of the Llama is due out soon too:   Learning Perl, 2ndEdition   Randal L. Schwartz   June 1997 (est.) O'Reilly & Associates Inc.   ISBN 1-56592-284-0 (English)   The two early Perl books by Schwartz and Wall are very helpful (even if they do pertain to perl 4 and not 5. Beware that perl/Tk makes extensive use of perl 5 object-oriented features.):   Learning Perl (The Llama)   Randal L. Schwartz   Copyright (c) 1993 O'Reilly & Associates Inc.   ISBN 1-56592-042-2 (English)   ISBN 2-84177-005-2 (French)   ISBN 3-930673-08-8 (German)   ISBN 4-89502-678-1 (Japanese)   Programming Perl (The Camel)   Larry Wall and Randal L. Schwartz   Copyright (c) 1991 O'Reilly & Associates Inc.   ISBN 0-937175-64-1 (English)   ISBN 3-446-17257-2 (German) (Programmieren in Perl, translator: Hanser Verlag)   ISBN 4-89052-384-7 (Japanese)   There is also some Perl5 (book material) information at: http://www.metronet.com/1h/perlinfo/perl5/   Jon Orwant (the organizer of the comp.lang.perl.tk newgroup) has a book on Perl 5 that has a chapter that discusses the Tk extension. (Please note that it is mostly about Perl 5, there is a some discussion of four simple Perl/Tk programs, but it is not a book wholly devoted to Perl/Tk.) It is nevertheless a good introduction to object-oriented Perl 5 programming. The relevant info:   Perl 5 Interactive Course   Jon Orwant   (c) 1996 The Waite Group Press   A Division of SAMS Publishing, Corte Madera, CA USA   ISBN: 1-57169-064-6   The Perl 5 Quick Reference Guide (may require LaTeX for installation) can be obtained from any CPAN ftp site. Detailed location information is also available at the author's website: http://www.xs4all.nl/~jvromans/perlref.html   The quick reference guide has also been turned into a small Nutshell handbook:   Perl 5 Desktop Reference   Johan Vromans   Copyright (c) February 1996 O'Reilly & Associates Inc.   ISBN: 1-56592-187-9; Order number: 1879   Eric F. Johnson has a book that discusses many perl5 for Unix vs. perl5 for Windows NT issues. He includes a final chapter with extensive discussion of the Tk extension and the ->Text() widget in particular. The information on that book is:   Cross-Platform Perl   (c) 1996 Eric F. Johnson   MIS:Press/M&T Books   ISBN: 1-55851-483-X   Kamran Husain and Robert F. Breedlove have written a perl 5 book that includes a chapter on Tk with some discussion of Menu()s. That book is:   Perl 5 Unleashed   Kamran Husain and Robert F. Breedlove   (c) 1996 Sams Publishing, Indianapolis, IN   ISBN: 0-672-30891-6   There is also a "Perl 5 How-To" book available that contains a great deal of erroneous information about perl/Tk. Among other things that book wrongly mentions that it is necessary to have a complete Tcl/Tk library installed on one's system to compile the Tk extension to perl. (They are incorrect - it is only necessary to have the appropriate perl version, libc and Xlib, the Tk extension is otherwise "self-contained").   There is also a book on perl web client. It features a a chapter on perl/Tk that was written by Nancy Walsh:   Web Client Programming with Perl   Clinton Wong   1st Edition March 1997   O'Reilly & Associates Inc.   ISBN: 1-56592-214-X; Order number: 214X   Additional book information may be found at Tom Christiansen's perl & cgi books page, or at his Perl-related Book Reviews page.   The multi-part perl 5 manual pages are available (assuming they have been installed in your MANPATH, type man perl, man perlmod etc.).   The perl 5 man pages are also available on the web at a number of locations. In general the more recent the documentation the more helpful it is.   In addition to the CPAN ftp source sites, a miscellany of internet perl resources includes: Newsgroups comp.lang.perl.misc comp.lang.perl.announce comp.lang.perl.modules comp.infosystems.www.authoring.cgi comp.answers news.answersPerl FAQ-Archives (ftp sites) [Note: FAQ may be many separate files](as of 5.004 the FAQ ships in pod format with perl) (see also the CPAN sites) North America ftp://rtfm.mit.edu/pub/usenet/news.answers/perl-faq/ ftp://ftp.uu.net/usenet/news.answers/perl-faq/ 192.48.96.9 ftp://ftp.khoros.unm.edu/pub/perl/faq.gz 198.59.155.28 Europe ftp://ftp.cs.ruu.nl/pub/NEWS.ANSWERS/perl-faq/ 131.211.80.17 ftp://src.doc.ic.ac.uk/packages/perl/FAQ 146.169.2.10Gopher Perl FAQ gopher://gopher.metronet.com/11/perlinfo/faqWWW-FAQ for Perl http://www.perl.com/perl/faq/ http://www.smartpages.com/bngfaqs/comp/lang/perl/top.html http://www.smartpages.com/bngfaqs/comp/lang/perl/misc/top.html http://www.smartpages.com/bngfaqs/comp/lang/perl/announce/top.html http://www.cis.ohio-state.edu/hypertext/faq/usenet/perl-faq/top.htmlPerl for Win32 FAQ (discusses Win95) http://www.perl.org/CPAN/doc/FAQs/win32/Perl_for_Win32_FAQ.htmlPerl info sitesGopher (gopher:70) perl info sites USA gopher://gopher.metronet.com/11h/perlinfoWorld Wide Web (http:80) perl info sites USA http://www.yahoo.com/Computers_and_Internet/Languages/Perl/index.html http://www.perl.com/ http://www.khoros.unm.edu/staff/neilb/perl/home.html http://www.khoros.unm.edu/staff/neilb/perl/metaFAQ/ http://www.metronet.com/perlinfo/ http://www.metronet.com/perlinfo/perl5.html (Perl 5) http://www.eecs.nwu.edu/perl/perl.html http://cesr39.lns.cornell.edu/public/perl/ http://www.virtualschool.edu/mon/Perl.html http://www.hermetica.com/technologia/unexec/ http://www.oac.uci.edu/indiv/ehood/perlWWW/ http://web.sau.edu/~mkruse/www/scripts/ http://orwant.www.media.mit.edu/the_perl_journal/ http://www.perl.com/Architext/AT-allperl.html http://www.mispress.com/introcgi/ http://www.walrus.com/~smithj/webcan/ http://web.syr.edu/~chsiao05/cps600_project.html http://www.iftech.com/classes/webdev/webdev_perl.htm http://www.cc.iastate.edu/perlmenu/ http://www.ora.com/www/item/cgi_prog.html http://www.netaxs.com/~joc/perlring.html UK http://pubweb.nexor.co.uk/public/perl/perl.html http://www.bio.cam.ac.uk/web/form.html Elsewhere http://www.oasis.leo.org/perl/00-index.htmlWeb references to Perl mailing lists http://www.perl.com/perl/info/mailing-lists.html http://www.nicoh.com/cgi-bin/lwgate/PERL5-PORTERS/ http://www.hut.fi/~jhi/perl5-porters.html http://www.rosat.mpe-garching.mpg.de/mailing-lists/ Tcl/Tk Specific Documentation   The two Tcl/Tk books by Ousterhout and Welch are very good starting points (you must however, translate the tcl-isms to perl in the sample scripts):   Tcl and the Tk Toolkit   John K. Ousterhout   Copyright (c) 1994 Addison-Wesley Publishing Company   ISBN 0-201-63337-X (alk. paper)   LOC QA76.73.T44097 1994; 005.13'3--dc20   Practical Programming in Tcl and Tk   Brent Welch   Copyright (c) 1995 Prentice Hall   ISBN 0-13-182007-9   Within the tclsh or wish shells your manpath includes the tcl/tk man pages (which may not be in your login MANPATH). Thus from the % prompt within either shell type commands like: % man -k Tk   The Tcl/Tk Reference Guide is also a source of useful information. Although it's Tcl specific most perl/Tk commands can be, more or less, easily derived from it. [Note that in perl/Tk the names of some functions and some configuration options have changed slightly from their Tcl/Tk counterparts. With recent versions of perl/Tk a great many functions start with an upper case letter and continue with all lower case letters (e.g. there is a perl/Tk Entry widget but no entry widget), and many configuration options are all lower case (e.g. there is a perl/Tk highlightthickness option but no highlightThickness option).] You may fetch the Tcl/Tk Reference Guide (may require LaTeX for installation) from: ftp://ftp.slac.stanford.edu/software/TkMail/tkref-4.0.1.tar.gz 134.79.18.30 ftp://ftp.aud.alcatel.com/tcl/docs/tkref-4.0.1.tar.gz 198.64.191.10   There are a number of other Tcl/Tk resources on the internet including: Newsgroups comp.lang.tcl comp.lang.tcl.announce comp.infosystems.www.authoring.cgi comp.answers news.answersFAQ-Archive (ftp) [Note: Tcl FAQ may be many files, Tk FAQ is one file] ftp://ftp.aud.alcatel.com/tcl/docs/ 198.64.191.10 ftp://rtfm.mit.edu/pub/usenet/news.answers/tcl-faq ftp://rtfm.mit.edu/pub/usenet/news.answers/tcl-faq/tkWWW-FAQ for Tcl/Tk http://www.teraform.com/~lvirden/tcl-faq/ http://www.smartpages.com/faqs/tcl-faq/top.html http://www.smartpages.com/bngfaqs/comp/lang/tcl/top.html http://www.cis.ohio-state.edu/hypertext/faq/usenet/tcl-faq/top.html http://www.cis.ohio-state.edu/hypertext/faq/bngusenet/comp/lang/tcl/top.html http://www.sco.com/Technology/tcl/Tcl.htmlWorld Wide Web - Tcl/Tk info sites Canada http://web.cs.ualberta.ca/~wade/Auto/Tcl.html UK http://http2.brunel.ac.uk:8080/~csstddm/TCL2/TCL2.html http://www.cis.rl.ac.uk/proj/TclTk/ USA http://www.yahoo.com/Computers_and_Internet/Languages/Tcl_Tk/index.html http://www.sunlabs.com/research/tcl/docs.html http://www.sunlabs.com/research/tcl/4.0.html http://www.sco.com/Technology/tcl/Tcl.html http://www.neosoft.com/tcl/ http://www.elf.org/tcltk-man-html/contents.htmlTcl/Tk - miscellaneous extensions ftp://ftp.cme.nist.gov/pub/expect/ http://www.cs.hut.fi/~kjk/porttk.html http://tix.sourceforge.net/ http://www.ece.cmu.edu/afs/ece/usr/svoboda/www/th/homepage.html http://www.tcltk.com/ http://www.neosoft.com/tcl/TclX.html http://www.eolas.com/eolas/webrouse/tcl.htm http://www.se.cuhk.hk/~hkng2/big5tk/big5tk.html http://www.cs.uoregon.edu/~jhobbs/work/ [BLT etc.] X Documentation   Tk certainly makes the generation of GUI code a lot easier than hard coding things in traditional compiled languages such as C, C++, or Lisp. Nevertheless there is a very large body of X documentation out there that will assist all widget and GUI builders with issues of design, implementation, etc. Hence it is good practice to be informed of the general design goals of X itself as well as the other toolkits that have been built on top of X.   There are a number of X resources on the internet including:   Newsgroups comp.windows.x comp.windows.x.announce comp.windows.x.appsX FAQs: ftp://ftp.x.org/contrib/faqs/X FAQ on the World Wide Web: http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-1 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-2 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-3 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-4 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-5 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-6 http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-7X Window System book info on the Web: http://www.x.org/ftp/contrib/docs/Xbibliography.OReilly http://www.ora.com/catalog/v1/ http://www.ora.com/catalog/v2/ http://www.ora.com/catalog/v3/ http://www.ora.com/catalog/v4/ http://www.ora.com/catalog/v5/ http://www.ora.com/catalog/v6a/ http://www.ora.com/catalog/v6b/ http://www.ora.com/catalog/v6c/ http://www.ora.com/catalog/r6/noframes.html http://www.ora.com/oracom/prog/flanart.htmlWorld Wide Web - X Window System info sites http://www.x.org/ http://www.x.org/consortium/GettingX.html http://www.x.org/consortium/x_info.html http://www.x.org/consortium/R6.1doc/man/X11/ http://www.wolfram.com/~cwikla/widget/ http://www.zeta.org.au/~rosko/pigui.htm http://www.rahul.net/kenton/xsites.html http://www.unx.com/DD/txaCurrent.shtml   譯文:   7. 哪裏有Perl/Tk的文檔?   其實,Tk模塊的安裝包中就帶有大量的Perl/Tk文檔,所以,可能你的系統上已經有很多相關的文檔了。   更多的文檔還在計劃中:有些針對Perl/Tk的書正在創作過程中(譯者注:可能有些書現在已經面世了,比如:Learning Perl/Tk,Mastering Perl/Tk等等)。同時一個關于Perl/Tk的期刊也在建設中,當然,還有一個逐步豐富的「常見問題」(就是你現在看到的這個文檔)。   其它你可能會想要參考的文檔資料大致可以分爲Perl/Tk,Perl,Tcl/Tk和X幾類:   Perl/Tk 專門文檔   用戶手冊   伴隨著Tk包的不斷更新,各種各樣的Perl/Tk的簡易老式文檔都被轉換系統幫助文件的格式,並在你安裝Perl/Tk的過程中(make install)同時被安裝到了你的系統中。如果你已經安裝了較新版本的Perl/Tk,你可以試試「man 3 Tk::Tk」命令(只對Unix系統)。如果不行,你最好找一下你的系統管理員簡稱一下MANPATH環境變量是否設置正確。   在你的Tk安裝目錄中應該有一個名爲doc/的子目錄,在那裏有很多.htm的文件(在你使用了make install之後)。這些文件都是原始的Tcl/Tk的手冊頁(來自man*子目錄),但是這些*.htm文件已經被轉換成了Perl的語法,並且使用了從超文本的格式。你可以使用Perl/Tk的網絡浏覽器來在當前目錄中閱讀它們:   tkweb index.html   或者,你也可以把它們安裝到一個web服務器的目錄裏,然後在網絡上浏覽它們。還有,你還可以在下面的網址浏覽這些文檔:   http://w4.lns.cornell.edu/~pvhp/ptk/doc/   新聞組   Perl/Tk的新聞組的名字是comp.lang.perl.tk,這個「常見問題」文檔會被定期的張貼在這個新聞組裏(就像其它的一些組一樣)。這個新聞組和(或)ptk的郵件列表是張貼Perl/Tk的問題的最合適的地方——即使是非常簡單的!(不過,有時回答會比較慢喲……L)   nTk/pTk郵件列表   郵件列表是comp.lang.perl.tk新聞組的很好的補充。所有發到列表中的信息都會被轉發到新聞組中(但不是所有新聞組中的帖子都會被轉發到郵件列表中)。有些Perl/Tk的專家只能通過電子郵件和他們聯系。   nTk/pTk郵件列表檔案也是非常有用的資源,你可以通過下面的網址訪問:   http://pubweb.bnl.gov/~ptk/   或者是通過ftp:   ftp://ftp.ccd.bnl.gov/pub/ptk/archives/   (都在美國)。你還可以在下面的網址中對另一個ptk的郵件列表的超文本檔案中查找(感謝德國的Achim Bohnet寫了一個CGI腳本):   http://www.rosat.mpe-garching.mpg.de/mailing-lists/ptk/   要從郵件列表中受到郵件,你必須事先訂閱。訂閱的辦法是發如下內容的電子郵件到majordomo@lists.stanford.edu:   subscribe ptk joe.user@somewhere (Joe D. User)   其中,你應該替換爲自己的郵件地址和姓名。   (注:如果需要取消訂閱ptk,你應該發送一個「unsubscribe ptk」的郵件到上面同樣的信箱。但是,你必須用當初訂閱時的帳戶和電腦來完成取消訂閱。特別需要注意的是,如果你是在以超文本格式看這個FAQ,因爲各種浏覽器的差別,你也許無法通過點擊我們給出的mailto的超鏈接來取消訂閱——如果你的浏覽器關聯的帳戶或電腦與你訂閱時的不同的話。感謝您的合作。)   演示程序   在安裝完Tk以後,你可以檢查並嘗試運行你的Tk安裝目錄中的一些腳本。或者你也許會有興趣測試一下已經安裝的代碼:   l perl5/site_perl/Tk/demos/或者perl5/site_perl/Tk/demos/widget_lib/目錄(新版本的Tk)   l perl5/Tk/demos/或者perl5/Tk/demos/widget_lib/目錄(舊版本,如Tk-b8)   要知道你的系統中安裝的perl5目錄的具體位置,可以在使用如下的perl命令(注意,這是在命令行提示符下使用的,不是在perl的腳本裏面):   perl -e 'print join("\n",@INC,"");'   如果從上面的命令結果中沒有perl5的目錄,那麽請用下面的命令來確定你確實已經安裝,並正在使用perl5(這也是只在命令行中鍵入的):   perl -v   更多的pod和man文檔   【前面已經提過,大量的Tcl/Tk的手冊頁已經由*roff格式轉換成了html文檔,並且就在你的Tk安裝目錄中的doc/子目錄中。這些文檔應該是Perl/Tk方面最權威和全面的參考資料。   這些Tk安裝包中的pod文檔就是Perl的簡易老式文檔的例子,這種格式是可讀的(例如,你可以用more,cat或者less來查看它們,甚至直接打印)。很多(不是所有的)Perl/Tk的簡易老式文檔都是由*roff格式轉換而來的,並且在Perl/Tk安裝的過程中自動的被作爲Perl的手冊頁裝入。   如果你已經安裝了新版本的Perl/Tk,你可以嘗試使用如下的命令來獲取Tk的幫助:   man 3 Tk::Tk (只對Unix系統可以)   如果這樣不行的話,請使用下面的方法檢查你系統的手冊頁搜索路徑:   perl -MConfig -e 'print $Config{man1dir},"\n",$Config{man3dir},"\n"'   如果這樣仍然不行,請向你的系統管理員咨詢正確的MANPATH參數設置和所安裝的Tk的版本。   原始的.pod文件(例如UserGuide.pod)可以使用tkpod超文本pod閱讀器來查看,也可以先用那些各種各樣的重格式化的Perl腳本處理後再閱讀。這些程序包括pod2man,pod2text,pod2html,pod2latex等等(這些腳本都是跟隨Perl一起安裝的)。其它的格式轉換程序還包括pod2texinfo,pod2fm,pod2pdf等等。如果你的系統中沒有這些程序,可以到某個CPAN的站點去下載。   在命令行中可以使用類似(取決于你的系統)下面的命令:   tkpod site_perl/Tk/UserGuide.pod   或者,如果你喜歡Unix手冊的風格:   pod2man perl5/Tk/UserGuide.pod | nroff –man | more   (注意,這裏我們使用的是完整的路徑,還有一種方法是先cd到文件所在的目錄中,然後使用:   pod2man UserGuide.pod | nroff –man | more   另外,還有一個Perl的腳本可以直接幫你執行上面的命令,如下:   perldoc UserGuide   注意如果一個Perl的模塊中包含了pod格式的文檔說明,你也可以直接對它使用tkpod(或者perldoc),例如:   tkpod ColorEditor.pm   (請注意,不幸的是,並非所有的.pm模塊文件都內嵌有pod文檔說明。)   如果你找不到系統中的tkpod程序,而你又希望能有圖形用戶界面的閱讀工具,可以使用下面的腳本(請先做適當的修改):   #!/usr/bin/perl   use Tk;   use Tk::Pod;   my $m = new MainWindow;   $m -> Pod(-file => 'ColorEditor.pm');   # or use command line path/filename:   # $m -> Pod(-file => $ARGV[0]);   MainLoop;   互聯網上的Perl/Tk資源   互聯網上的Perl/Tk手冊頁   http://pubweb.bnl.gov/~ptk/doc/index.html   http://w4.lns.cornell.edu/~pvhp/ptk/doc/   http://w4.lns.cornell.edu/~pvhp/ptk/pod/   Perl/Tk新聞組   comp.lang.perl.tk   Perl新聞組   comp.lang.perl.misc   comp.lang.perl.anounce   comp.lang.perl.modules   Tcl新聞組   comp.lang.tcl   comp.lang.tcl.announce   其它混雜的新聞組   comp.answers   news.answers   Perl/Tk常見問題檔案(ftp站點) [注意: FAQ可能是很多文件]   ftp://rtfm.mit.edu/pub/usenet/comp.lang.perl.tk   ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/comp/lang/perl/tk   ftp://ftp.uu.net/usenet/news.answers/perl-faq/ptk-faq   ftp://ftp.ccd.bnl.gov/pub/ptk/ 130.199.54.188   ftp://ftp.ccd.bnl.gov/pub/ptk/ptkFAQ.txt 130.199.54.188   ftp://ftp.wpi.edu/perl5/pTk-FAQ 130.215.24.209   ftp://perl.com/pub/perl/doc/ptkFAQ.gz 199.45.129.30   ftp://perl.com/pub/perl/doc/ptkFAQ.ps.gz 199.45.129.30   互聯網上的perl/Tk常見問題   http://www.perltk.org/contrib/ptkTOC.html perl/Tk信息站點   http://pubweb.bnl.gov/~ptk/   http://fxfx.com/kgr/compound/ (Perl/Tk組合組件主頁)   http://www.perltk.org/contrib/ptkIMG.html (常見問題的圖形補充)   http://www.perltk.org/contrib/etc/ http://www.perltk.org/contrib/misc/ http://www.perltk.org/contrib/PNMTYAK/ http://www.mirai.com/wks/   郵件列表   majordomo@lists.stanford.edu   ptk@lists.stanford.edu   (譯者:下面的內容都不是針對Perl/Tk的了,而且大部分是一些鏈接,所以就略去了——實在太多了……大家自己點進去看吧!)   (注:因爲此原始網頁上copy下來的內容格式在這裏總是不對,所以爲了方便大家閱讀,我把後面的內容調整後貼在了下面)   Perl Specific Documentation   There are a growing number Perl books available. A more complete Perl-bibliographic discussion than that given here is available in the Perl FAQ or at: http://www.perl.com/perl/info/books.html   For Perl 5 there is (as of September 1996) a "New Camel" by Larry Wall, Tom Christiansen, and Randal L. Schwartz, with Stephen Potter.   Programming Perl 2nd Edition   Larry Wall, Tom Christiansen, & Randal L. Schwartz with Stephen Potter   (c) 1996 O'Reilly & Associates Inc.   ISBN 1-56592-149-6 (English)   A forthcoming book from major Perl/Tk contributor Sriram Srinivasan is:   Advanced Perl Programming   By Sriram Srinivasan   1st Edition August 1997 (est.)   O'Reilly & Associates Inc.   ISBN: 1-56592-220-4, Order Number: 2204   440 pages (est.), $34.95 (est.)   A second edition of the Llama is due out soon too:   Learning Perl, 2ndEdition   Randal L. Schwartz   June 1997 (est.) O'Reilly & Associates Inc.   ISBN 1-56592-284-0 (English)   The two early Perl books by Schwartz and Wall are very helpful (even if they do pertain to perl 4 and not 5. Beware that perl/Tk makes extensive use of perl 5 object-oriented features.):   Learning Perl (The Llama)   Randal L. Schwartz   Copyright (c) 1993 O'Reilly & Associates Inc.   ISBN 1-56592-042-2 (English)   ISBN 2-84177-005-2 (French)   ISBN 3-930673-08-8 (German)   ISBN 4-89502-678-1 (Japanese)   Programming Perl (The Camel)   Larry Wall and Randal L. Schwartz   Copyright (c) 1991 O'Reilly & Associates Inc.   ISBN 0-937175-64-1 (English)   ISBN 3-446-17257-2 (German) (Programmieren in Perl, translator: Hanser Verlag)   ISBN 4-89052-384-7 (Japanese)   There is also some Perl5 (book material) information at: http://www.metronet.com/1h/perlinfo/perl5/   Jon Orwant (the organizer of the comp.lang.perl.tk newgroup) has a book on Perl 5 that has a chapter that discusses the Tk extension. (Please note that it is mostly about Perl 5, there is a some discussion of four simple Perl/Tk programs, but it is not a book wholly devoted to Perl/Tk.) It is nevertheless a good introduction to object-oriented Perl 5 programming. The relevant info:   Perl 5 Interactive Course   Jon Orwant   (c) 1996 The Waite Group Press   A Division of SAMS Publishing, Corte Madera, CA USA   ISBN: 1-57169-064-6   The Perl 5 Quick Reference Guide (may require LaTeX for installation) can be obtained from any CPAN ftp site. Detailed location information is also available at the author's website: http://www.xs4all.nl/~jvromans/perlref.html   The quick reference guide has also been turned into a small Nutshell handbook:   Perl 5 Desktop Reference   Johan Vromans   Copyright (c) February 1996 O'Reilly & Associates Inc.   ISBN: 1-56592-187-9; Order number: 1879   Eric F. Johnson has a book that discusses many perl5 for Unix vs. perl5 for Windows NT issues. He includes a final chapter with extensive discussion of the Tk extension and the ->Text() widget in particular. The information on that book is:   Cross-Platform Perl   (c) 1996 Eric F. Johnson   MIS:Press/M&T Books   ISBN: 1-55851-483-X   Kamran Husain and Robert F. Breedlove have written a perl 5 book that includes a chapter on Tk with some discussion of Menu()s. That book is:   Perl 5 Unleashed   Kamran Husain and Robert F. Breedlove   (c) 1996 Sams Publishing, Indianapolis, IN   ISBN: 0-672-30891-6   There is also a "Perl 5 How-To" book available that contains a great deal of erroneous information about perl/Tk. Among other things that book wrongly mentions that it is necessary to have a complete Tcl/Tk library installed on one's system to compile the Tk extension to perl. (They are incorrect - it is only necessary to have the appropriate perl version, libc and Xlib, the Tk extension is otherwise "self-contained").   There is also a book on perl web client. It features a a chapter on perl/Tk that was written by Nancy Walsh:   Web Client Programming with Perl   Clinton Wong   1st Edition March 1997   O'Reilly & Associates Inc.   ISBN: 1-56592-214-X; Order number: 214X   Additional book information may be found at Tom Christiansen's perl & cgi books page, or at his Perl-related Book Reviews page.   The multi-part perl 5 manual pages are available (assuming they have been installed in your MANPATH, type man perl, man perlmod etc.).   The perl 5 man pages are also available on the web at a number of locations. In general the more recent the documentation the more helpful it is.   In addition to the CPAN ftp source sites, a miscellany of internet perl resources includes:   Newsgroups   comp.lang.perl.misc   comp.lang.perl.announce   comp.lang.perl.modules   comp.infosystems.www.authoring.cgi   comp.answers   news.answers   Perl FAQ-Archives (ftp sites) [Note: FAQ may be many separate files]   (as of 5.004 the FAQ ships in pod format with perl)   (see also the CPAN sites)   North America   ftp://rtfm.mit.edu/pub/usenet/news.answers/perl-faq/   ftp://ftp.uu.net/usenet/news.answers/perl-faq/ 192.48.96.9   ftp://ftp.khoros.unm.edu/pub/perl/faq.gz 198.59.155.28   Europe   ftp://ftp.cs.ruu.nl/pub/NEWS.ANSWERS/perl-faq/ 131.211.80.17   ftp://src.doc.ic.ac.uk/packages/perl/FAQ 146.169.2.10   Gopher Perl FAQ   gopher://gopher.metronet.com/11/perlinfo/faq   WWW-FAQ for Perl   http://www.perl.com/perl/faq/   http://www.smartpages.com/bngfaqs/comp/lang/perl/top.html   http://www.smartpages.com/bngfaqs/comp/lang/perl/misc/top.html   http://www.smartpages.com/bngfaqs/comp/lang/perl/announce/top.html   http://www.cis.ohio-state.edu/hypertext/faq/usenet/perl-faq/top.html   Perl for Win32 FAQ (discusses Win95) http://www.perl.org/CPAN/doc/FAQs/win32/Perl_for_Win32_FAQ.html   Perl info sites   Gopher (gopher:70) perl info sites   USA   gopher://gopher.metronet.com/11h/perlinfo   World Wide Web (http:80) perl info sites   USA   http://www.yahoo.com/Computers_and_Internet/Languages/Perl/index.html   http://www.perl.com/   http://www.khoros.unm.edu/staff/neilb/perl/home.html   http://www.khoros.unm.edu/staff/neilb/perl/metaFAQ/ http://www.metronet.com/perlinfo/   http://www.metronet.com/perlinfo/perl5.html (Perl 5)   http://www.eecs.nwu.edu/perl/perl.html   http://cesr39.lns.cornell.edu/public/perl/   http://www.virtualschool.edu/mon/Perl.html   http://www.hermetica.com/technologia/unexec/   http://www.oac.uci.edu/indiv/ehood/perlWWW/   http://web.sau.edu/~mkruse/www/scripts/   http://orwant.www.media.mit.edu/the_perl_journal/   http://www.perl.com/Architext/AT-allperl.html   http://www.mispress.com/introcgi/   http://www.walrus.com/~smithj/webcan/   http://web.syr.edu/~chsiao05/cps600_project.html   http://www.iftech.com/classes/webdev/webdev_perl.htm   http://www.cc.iastate.edu/perlmenu/   http://www.ora.com/www/item/cgi_prog.html   http://www.netaxs.com/~joc/perlring.html   UK   http://pubweb.nexor.co.uk/public/perl/perl.html   http://www.bio.cam.ac.uk/web/form.html   Elsewhere   http://www.oasis.leo.org/perl/00-index.html   Web references to Perl mailing lists   http://www.perl.com/perl/info/mailing-lists.html   http://www.nicoh.com/cgi-bin/lwgate/PERL5-PORTERS/   http://www.hut.fi/~jhi/perl5-porters.html   http://www.rosat.mpe-garching.mpg.de/mailing-lists/   Tcl/Tk Specific Documentation   The two Tcl/Tk books by Ousterhout and Welch are very good starting points (you must however, translate the tcl-isms to perl in the sample scripts):   Tcl and the Tk Toolkit   John K. Ousterhout   Copyright (c) 1994 Addison-Wesley Publishing Company   ISBN 0-201-63337-X (alk. paper)   LOC QA76.73.T44097 1994; 005.13'3--dc20   Practical Programming in Tcl and Tk   Brent Welch   Copyright (c) 1995 Prentice Hall   ISBN 0-13-182007-9   Within the tclsh or wish shells your manpath includes the tcl/tk man pages (which may not be in your login MANPATH). Thus from the % prompt within either shell type commands like:   % man -k Tk   The Tcl/Tk Reference Guide is also a source of useful information. Although it's Tcl specific most perl/Tk commands can be, more or less, easily derived from it. [Note that in perl/Tk the names of some functions and some configuration options have changed slightly from their Tcl/Tk counterparts. With recent versions of perl/Tk a great many functions start with an upper case letter and continue with all lower case letters (e.g. there is a perl/Tk Entry widget but no entry widget), and many configuration options are all lower case (e.g. there is a perl/Tk highlightthickness option but no highlightThickness option).] You may fetch the Tcl/Tk Reference Guide (may require LaTeX for installation) from:   ftp://ftp.slac.stanford.edu/software/TkMail/tkref-4.0.1.tar.gz 134.79.18.30   ftp://ftp.aud.alcatel.com/tcl/docs/tkref-4.0.1.tar.gz 198.64.191.10   There are a number of other Tcl/Tk resources on the internet including:   Newsgroups   comp.lang.tcl   comp.lang.tcl.announce   comp.infosystems.www.authoring.cgi   comp.answers   news.answers   FAQ-Archive (ftp) [Note: Tcl FAQ may be many files, Tk FAQ is one file]   ftp://ftp.aud.alcatel.com/tcl/docs/ 198.64.191.10   ftp://rtfm.mit.edu/pub/usenet/news.answers/tcl-faq   ftp://rtfm.mit.edu/pub/usenet/news.answers/tcl-faq/tk   WWW-FAQ for Tcl/Tk   http://www.teraform.com/~lvirden/tcl-faq/ http://www.smartpages.com/faqs/tcl-faq/top.html   http://www.smartpages.com/bngfaqs/comp/lang/tcl/top.html   http://www.cis.ohio-state.edu/hypertext/faq/usenet/tcl-faq/top.html   http://www.cis.ohio-state.edu/hypertext/faq/bngusenet/comp/lang/tcl/top.html   http://www.sco.com/Technology/tcl/Tcl.html   World Wide Web - Tcl/Tk info sites   Canada   http://web.cs.ualberta.ca/~wade/Auto/Tcl.html   UK   http://http2.brunel.ac.uk:8080/~csstddm/TCL2/TCL2.html   http://www.cis.rl.ac.uk/proj/TclTk/   USA   http://www.yahoo.com/Computers_and_Internet/Languages/Tcl_Tk/index.html   http://www.sunlabs.com/research/tcl/docs.html   http://www.sunlabs.com/research/tcl/4.0.html   http://www.sco.com/Technology/tcl/Tcl.html   http://www.neosoft.com/tcl/   http://www.elf.org/tcltk-man-html/contents.html   Tcl/Tk - miscellaneous extensions   ftp://ftp.cme.nist.gov/pub/expect/   http://www.cs.hut.fi/~kjk/porttk.html   http://tix.sourceforge.net/ http://www.ece.cmu.edu/afs/ece/usr/svoboda/www/th/homepage.html   http://www.tcltk.com/ http://www.neosoft.com/tcl/TclX.html   http://www.eolas.com/eolas/webrouse/tcl.htm http://www.se.cuhk.hk/~hkng2/big5tk/big5tk.html   http://www.cs.uoregon.edu/~jhobbs/work/ [BLT etc.]   X Documentation   Tk certainly makes the generation of GUI code a lot easier than hard coding things in traditional compiled languages such as C, C++, or Lisp. Nevertheless there is a very large body of X documentation out there that will assist all widget and GUI builders with issues of design, implementation, etc. Hence it is good practice to be informed of the general design goals of X itself as well as the other toolkits that have been built on top of X.   There are a number of X resources on the internet including:   Newsgroups   comp.windows.x   comp.windows.x.announce   comp.windows.x.apps   X FAQs:   ftp://ftp.x.org/contrib/faqs/   X FAQ on the World Wide Web:   http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-1   http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-2   http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-3   http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-4   http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-5   http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-6   http://www.x.org/ftp/contrib/faqs/x-faq-multipart/x-faq-7   X Window System book info on the Web:   http://www.x.org/ftp/contrib/docs/Xbibliography.OReilly   http://www.ora.com/catalog/v1/   http://www.ora.com/catalog/v2/   http://www.ora.com/catalog/v3/   http://www.ora.com/catalog/v4/   http://www.ora.com/catalog/v5/   http://www.ora.com/catalog/v6a/   http://www.ora.com/catalog/v6b/   http://www.ora.com/catalog/v6c/   http://www.ora.com/catalog/r6/noframes.html   http://www.ora.com/oracom/prog/flanart.html   World Wide Web - X Window System info sites   http://www.x.org/   http://www.x.org/consortium/GettingX.html   http://www.x.org/consortium/x_info.html   http://www.x.org/consortium/R6.1doc/man/X11/   http://www.wolfram.com/~cwikla/widget/   http://www.zeta.org.au/~rosko/pigui.htm   http://www.rahul.net/kenton/xsites.html   http://www.unx.com/DD/txaCurrent.shtml
󰈣󰈤
 
 
 
  免責聲明:本文僅代表作者個人觀點,與王朝網路無關。王朝網路登載此文出於傳遞更多信息之目的,並不意味著贊同其觀點或證實其描述,其原創性以及文中陳述文字和內容未經本站證實,對本文以及其中全部或者部分內容、文字的真實性、完整性、及時性本站不作任何保證或承諾,請讀者僅作參考,並請自行核實相關內容。
 
 
寶貝清純百變豬豬
美女喜太狼裙裝時代
美麗幹練的OL
平面模特楊棋涵
石系列印象
海洲錦屏磷礦
再憶桂林
觀:重金屬所攝影:元陽梯田所想
 
>>返回首頁<<
 
 
 
 熱帖排行
 
 
 
 
© 2005- 王朝網路 版權所有