原文:
16.2. Is there a file selector?
Yes, there may be several eventually...
One distributed with the perl/Tk code kit itself is called FileSelect.pm and was written by Frederick L. Wagner - (based on an original by Klaus Lichtenwalder).
Another module called SelFile.pm was adapted by Alan Louis Scheinine from Wagner's FileSelect.pm. It is available from: http://sun20.ccd.bnl.gov/~ptk/archive/ptk.1995.11/0122.htmlor http://www.perltk.org/contrib/etc/SelFile.pm
A module called FileSave.pm allows one to type in a new (non-existant) filename for "Save as..." type operations. It was posted by Mark Elston on 12 Oct 1995 to the mailing list and is available from: http://sun20.ccd.bnl.gov/~ptk/archive/ptk.1995.10/0093.htmlor http://www.perltk.org/contrib/etc/FileSave.pm
A slightly different behaviour is to be had with Brent B. Powers' FileDialog.pm that was posted to the mailing list on 12 Jan 1996 and available from: http://sun20.ccd.bnl.gov/~ptk/archive/ptk.1995.12/0201.htmlor http://www.perltk.org/contrib/etc/FileDialog.pm
Harry Bochner chimed in with SaveAs.pm. It is available from: http://www.perltk.org/contrib/etc/SaveAs.pm
In general, if there is a feature that you want missing from one of these, or some behaviour that you would like to see modified then by all means cp the source code to your area and start hacking ;-)
译文:
16.2. 有进行文件选择的模块吗?
是的,而且现在已经有了好几个……
第一个是跟随Perl/Tk包一起发布的名为FileSelect.pm的模块,它是由Frederick L. Wagner在最初Klaus Lichtenwalder的基础上写出来的。
另一个模块叫SelFile.pm,它是由Alan Louis Scheinine从Wagner的FileSelect.pm修改而来的。这个模块可以从下面的网址获得:
http://sun20.ccd.bnl.gov/~ptk/archive/ptk.1995.11/0122.html
或者
http://www.perltk.org/contrib/etc/SelFile.pm
还有一个名为FileSave.pm的模块,它提供了用户可以输入一个不存在的文件名,用以实现“另存为……”的功能。此模块由Mark Elston在1995年10月12日贴在了新闻组里的,现在可以从下面的网址获得:
http://sun20.ccd.bnl.gov/~ptk/archive/ptk.1995.12/0201.html
或者
http://www.perltk.org/contrib/etc/FileDialog.pm
Harry Bochner还写了一个SaveAs.pm模块,可以从下面的网址获得:
http://www.perltk.org/contrib/etc/SaveAs.pm
一般来说,如果你希望去掉其中的某些功能,或你想作些修改,那么只能把他们的代码复制到你所需要的地方,然后开始自己动手修改了。;-)