Perl FAQ Set II _ Application Tips

Source: Internet
Author: User
Tags documentation perl interpreter win32 learn perl
Which platforms have Perl on? Where are we going to find them?

The standard release of Perl (maintained by the Perl Development Group) is distributed only in the original code form. You can obtain it at http://www.perl.com/cpan/src/latest.tar.gz. The format of this file is the POSIX tar filing cabinet, which is then compressed in gzip format. This source code can be easily compiled and installed on most UNIX systems (the native system of Perl) and Plan 9, VMS, QNX, OS/2, and Amiga without any porting work at all. Although there is a rumor that version 5.004 may be able to compile and install directly on Windows NT, this remains to be confirmed. The 32-bit Microsoft system and the Apple system, the release of Perl in the form of an executive file, can be found under this directory of http://www.perl.com/cpan/ports/. Since these two are not part of the standard release, they may (in fact, indeed) differ from the basic Perl in many ways. To know exactly which places are different, you have to check their respective release notes. These differences may be positive (for example, they may be accompanied by extensions that are not available in Perl from the source code release, provide special features for a particular platform), or negative (for example, they may be based on older versions of the Perl source code release).

A practical FAQ, designed for Win32 Perl users, can be obtained at http://www.endcontsw.com/people/evangelo/Perl_for_Win32_FAQ.html.


How about Perl that can be released in the form of file execution?

No matter why your operator does not attach the C compiler to the operating system you sell, the best way to get to the web is to grab a gcc execution file and use it to compile Perl. The GCC execution file on the CPAN provides only a few platforms that are particularly difficult to get free compilers, rather than to any UNIX system.

Your first step should be to check the Http://www.perl.com/CPAN/ports file to see what installation information you can get. http://www.cs.ruu.nl/~piet/perl5dos.html provides a copy of the information about installing Perl on DOS, while http://www.cs.ruu.nl/~piet/perlwin3.html is about The information that is installed on Windows 3.1.



I don't have a C compiler in my system. How do I compile Perl?

Because you do not have a C compiler, you are not expected, and your dealer should be used as a worship of the offerings of Yang. But to say these sarcastic remarks is nothing.

The first thing you need to do is to find a gcc execution file for your system. See the Usenet FAQs associated with your operating system and see where you can find the GCC execution file for this operating system.

I copied Perl's execution files from one machine to another, but the program couldn't run. That's probably because you forgot to copy the library, or the path to the library is a different relationship. You should really compile the entire release from scratch on the machine on which Perl is to be installed, and then make install to install it. Most of the other methods are doomed to failure.

There is a simple way to check and determine if something is in place-print out the Perl @INC Array (the path Perl uses it to find the library): Perl-e ' print join (\ n, @INC) '

If this directive lists any paths that do not exist on your system, you may have to move the appropriate libraries to these places, or make appropriate symlinks, aliases, or shortcuts.

You might want to see how does I keep my own module/library directory?

I grabbed back the original code and tried to compile Perl, but gdbm/dynamic loading/malloc/linking/... Partial failure. How do you fix it?
Read install this file, which is a file in the original code release. Sometimes the Configure is overwhelmed by some of the more unusual systems, platform features, or variations. The file has a detailed description of how to do this kind of problem.

what are the modules and extensions of Perl? What is CPAN? cpan/src/... And what does it mean?

CPAN represents the "Large Perl Archive Network" (Comprehensive Perl Archive Network), a huge archive of maps between dozens of machines all over the world. CPAN contains the original code, porting, using instructions, programs for various non-native systems, and many modules and extensions written by the third class group, from the commercial brand database interface, to keyboard/screen control, to the global Information network roaming and CGI programs are all reprehensible. CPAN's total host is ftp://ftp.funet.fi/pub/languages/perl/cpan/, but you can also access this address: http://www.perl.com/cpan/cpan.html comes from a dynamic connection that is closest to your station in the geographical location. As to how this design works, see http://www.perl.com/cpan (with no slash at the end).

cpan/Path/... It's the naming code for the files on the CPAN platform. CPAN represents a base directory for a CPAN map, and the remainder of the path is the path from that directory to a file. For example, if you use Ftp://ftp.funet.fi/pub/languages/perl/CPAN to do your CPAN station, then cpan/misc/japh this file can be from ftp://ftp.funet.fi/pub/ Languages/perl/cpan/misc/japh grabbed it down.

Since there are already hundreds of modules in the CPAN archive, almost any use you can think of can already have a ready-made module. The categories currently under cpan/modules/by-category/include the Perl core modules, assistance in developing modules, operating system interfaces, networking, peripherals, communication between different processes, data-type tools, database interfaces, user interfaces, interface with other languages, File name, archival systems, File locking, software internationalization and localization, global information network support, servo software tools, archive and file compression, graphic transformation processing, email and news discussion groups, program flow control tools, filehandles and input/output, Microsoft Windows modules, and miscellaneous modules.

   Is there a Perl version approved by ISO "International Standards Bureau" or ANSI "American National Standards Bureau"?

Of course not. Larry thinks he has to be approved before it's his turn to Perl.

  where can I find the information about Perl?
  
A full description of the usage is attached to the Perl release. If Perl is already installed on your machine, then the instructions should also be on the top: If you are using a Unix-like system, you can play man Perl. This will also lead you to other important pages of usage instructions. If you are not using a Unix-style system, the method of accessing the instructions will vary, for example, the instructions may be stored in HTML format. In any case, as long as Perl is installed correctly, it should not be a problem to consult the usage instructions.

If your system does not have the man's command, or if the instruction is improperly installed, you can try Perldoc perl. If not, you can find instructions for using this directory in/usr/local/lib/perl5/pod.

If all the above methods fail, then you can turn to the Cpan/doc directory, which contains complete instructions for use in a variety of formats, including the original pod format, troff, HTML, and plain text. and http://www.perl.com/perl/info/documentation.html This page may also be helpful to you.

It is also worth mentioning that there is a full PDF version of the use instructions under the Cpan/authors/id/bmidd directory.

There are many good books on the market that are related to Perl, as described in the following section.

What are the Usenet news discussion groups that specialize in Perl? Where is the question to be cast?

Comp.lang.perl This group no longer exists, it has been replaced by the following groups:
Comp.lang.perl.announce announcement related matters (with control)
Comp.lang.perl.misc General issues discussion, very busy
The use and development of comp.lang.perl.modules modules
Discussion of comp.lang.perl.tk Perl TK (and X)
Discussion on comp.infosystems.www.authoring.cgi www CGI program writing related problems
There is also a Perl development Group (Perl5-porters) in news://genetics.upenn.edu/perl.porters-gw/to connect the mailing forum channel.

if I want to cast the original code, which board should I put on?

You should look at the nature of the program to decide which board to throw on, but also welcome you to cross deliver a copy to Comp.lang.perl.misc. If you intend to cross delivery to alt.sources, be sure to follow the standards set by the board, including the Followup-to column of the header not to include the alt.sources; see the FAQ for this board.

Perl Books

There are a lot of books on Perl and/or CGI programming on the market. Some of them are good, some are passable, but many are not worth buying at all. Most of the Perl books are listed in the http://www.perl.com/perl/critiques/index.html that Tom Christiansen maintains, some of which have detailed comments.

Arguably, the most authoritative Perl reference book is the following, by the founders and followers of Perl, now the second edition of the fourth print:

Programming Perl (commonly known as "the Camel Book; Camel album):
Author: Larry Wall, Tom Christiansen, and Randal Schwartz
ISBN 1-56592-149-6 (English version)
ISBN 4-89052-384-7 (Japanese version)
(in French, German version of preparation)

Please note that the book "O ' Reilly", the publisher of this and the following two books, is classified by color--the "blue-green" color of Turkish jade (which some might say is duck hair green) covers Perl5, the purple (which some might say is pink) has a cover that is limited to PERL4. So first look at the skin and then buy!

The bottom is a few books that I personally find helpful. Your personal feelings and preferences may be different (but we hope not).

If you are a solid system programmer, then just take the camel book to learn Perl is probably enough. But if you are not so good, then first look at the "llama book." The book does not currently cover PERL5, but the second edition is nearing completion and should be asked before the summer of 1997.

Learning Perl (commonly known as "the Llama Book; llama)
Author: Randal Schwartz, ordered by Larry Wall
ISBN 1-56592-042-2 (English)
ISBN 4-89502-678-1 (Japanese)
ISBN 2-84177-005-2 (French)
ISBN 3-930673-08-8 (German)

Another book, the same O ' Reilly Perl series, is the "Handsome Owl" album. It analyzes the formal notation (regular expressions) from the inside to the field, with considerable weight written specifically for Perl:

Mastering Regular Expressions (the cute owls book; the Lovely Owl album):
Author: Jeffrey Friedl
ISBN 1-56592-257-3

You can order the above books from O ' Reilly & Associates, and their phones are 1-800-998-9938 (the USA and Canada) and 1-707-829-0515 (other parts of the world). If you have an O ' Reilly purchase order, you can fax 1-707-829-0104. For more information, please go to the http://www.ora.com/on the Internet.

Other Perl books not published by O ' Reilly and recommended by the author:

Cross-platform Perl, (for UNIX and Windows NT)
Author: Eric F. Johnson
Isbn:1-55851-483-x

How to Set up and maintain a world Wide Web Site, (2nd edition)
Author: Lincoln Stein, M.D., Ph.D.
Isbn:0-201-63462-7

CGI Programming in C & Perl,
Author: Thomas Boutell
isbn:0-201-42219-0

To remind you that some of these books are written for certain areas of application, such as WWW, rather than general programming.

Perl-related magazines

Perl Journal is the first and only periodical to be devoted to Perl, published quarterly (for a paper journal, not an electronic journal). The publisher, Editor-in-Chief is Jon Orwant (orwant@tpj.com. Subscription information can be obtained in http://tpj.com, or via email to subscriptions@tpj.com.

In addition, the two other magazines often have high levels of Perl articles, which are Web techniques (see http://www.webtechniques.com/) and Unix Review (http:// www.unixreview.com/). Randal Schwartz's column in the WEB techniques magazine can be obtained from http://www.stonehenge.com/merlyn/webtechniques/at WWW.


Perl on the Web: via FTP and WWW

If you want to achieve the best (and most economical) transfer effect, grab the complete map list from the top of the platforms listed below. Then you can pick a platform that is the fastest for you. Keep in mind that the bottom is not the complete list of CPAN mapping stations.

Http://www.perl.com/CPAN (automatically bounces to other mapping stations)
Http://www.perl.org/CPAN
ftp://ftp.funet.fi/pub/languages/perl/CPAN/
http://www.cs.ruu.nl/pub/PERL/CPAN/
ftp://ftp.cs.colorado.edu/pub/perl/CPAN/
http:/www.oasis.leo.org/perl/, among other things, collects the Perl source code from the 11th through the fifth edition.

what are the mailing forums to discuss Perl (mailing lists)?

Most of the important modules (such as TK, CGI, and Libwww-perl) have exclusive mailing lists. For information, please refer to the instructions for using these modules. The following mailing lists are related to Perl itself:

If you subscribe to join a mailing list, you are obligated to know how to unsubscribe. If it's just hard to cry on the forum, it won't be accepted. "The address of the forum's mail address and the server that manages the subscription are often different".

Macperl

This is the mailing forum for the discussion of Macintosh Perl. Please contact "mac-perl-request@iis.ee.ethz.ch" for details. And you can have a Web page of Matthias Neeracher (Macperl's creator and maintainer) http://www.iis.ee.ethz.ch/~neeri/macintosh/perl.html Connect to a lot of interesting macperl platforms , as well as the precompiled application/MPW development tools.

perl5-porters

This is the mailing forum in which Perl's core development team discusses errors and modifications to the language itself. You can send a letter to perl5-porters-request@perl.org, in the letter where the body of the text to write "help", you can receive the relevant subscription information.

Ntperl

This is a mailing forum for discussion of Win32 PERL5 (Windows NT and Win95). To subscribe, send a letter to ListManager@ActiveWare.com and write in the text of the letter:
Subscribe Perl-win32-users

This Perl post Forum management software automatically finds your address and then joins you on the list. If you want to unsubscribe, send a letter to the same place, in the text note: Unsubscribe perl-win32-users

You can also connect to http://www.activeware.com/and then choose "mailing lists" to join or leave the mailing forum.

Perl-packrats

This is used to discuss the storage management of Perl data, especially the mailing forums for the large Perl Archive Network (CPAN). Interested subscribers can email majordomo@cis.ufl.edu, which is indicated in the article: Subscribe perl-packrats

It's also written in Perl. Post Forum Management Soft experience automatically finds your address and then adds you to the list. If you want to unsubscribe, send a letter to the same place, and add "un" to the same subscription instruction in the body, like this: Unsubscribe perl-packrats

The archive of Comp.lang.perl.misc posts.

   Have you tried Deja news or Alta Vista?

Ftp.cis.ufl.edu:/pub/perl/comp.lang.perl.*/monthly has a complete collection since December 1989 (from August 1991) to December 1993. The posts of each month is stored in a large file.

You may want a fully functional interrogation and extraction system, rather than just printing out the file name, it's best to use an index for a quick search engine that can be searched by at least the author, date, subject, thread (as TRN), and perhaps keywords. The best way for the author to know is the MH Kit's pick directive, but it's really slow to search for tens of thousands of posts.

If you have ever found, or know where to find the missing part, please inform: perlfaq-suggestions@perl.com.


Perl Training Course

Although some of the major training companies offer a variety of Perl training courses, you may be more likely to teach you to find someone who is really close to Perl development. The two well-known members of the Perl development team, Tom Christiansen and Randal Schwartz, together with the minions of the two men, teamed up to provide professional introductory lectures and seminars on Perl. These include open sessions, private enterprise staff training programs, and direct flight to Colorado and Oregon. For more information, see http://www.perl.com/perl/info/training.html.

How do I buy a commercial version of Perl?

In a way, Perl is already a commercial software: You can read the Perl release agreement to your manager. The various distributions are accompanied by a clear and clear convention on the regulation. Perl has a wide range of users and extensive literature. Comp.lang.perl.* and other news discussion groups and electronic mailing forums to provide a quick answer to all kinds of difficult diseases. Perl has traditionally been supported by Larry, many software design engineers, and thousands of programmers, who have been working together to make a better day for everyone.

However, some executives insist on placing orders only to companies that have a guaranteed sale, so that the answer may not be satisfactory to such managers. It may be that such executives find it necessary to support themselves and to have a strong contractual obligation. There are Perl CDs for sale in cellophane sealed packs, which you can try, perhaps to your manager.

Otherwise you can buy a contract that uses support. Although Cygnus has provided this service in the past, they are no longer selling Perl support contracts. Instead, it is the Perl clinic that the Paul Ingram Group dedicated to this gap. Here's one of their ads: "Not over."

' Do you need professional support for Perl and/or Oraperl? Do your need a support contract with defined levels of service? Do your want to pay a for what you need? '

"The Paul Ingram Group has provided quality software development and support services to some of the world ' s largest Corp. Orations for ten years. We are now offering the same quality support services to Perl at the Perl Clinic. This service was led by Tim Bunce, an active Perl porter since 1994 and known as the author, Dbd::oracle, and Oraperl modules and Author/co-maintainer of the Perl 5 Module List. We also offer Oracle users support for PERL5 Oraperl and related modules (which Oracle are planning to ship as part of Orac Le Web Server 3). 20% of the profit from our Perl support work would be donated to the Perl Institute. '

For further information, you can contact the Perl clinic:

Tel: +44 1483 424424
Fax: +44 1483 419419
web:http://www.perl.co.uk/
email:perl-support-info@perl.co.uk or Tim.Bunce@ig.co.uk

If you find out where to report bugs?

If you find that the Perl interpreter or the module in the standard release has bugs and want to know the Perl development team, use the Perlbug program that is attached to the Perl release, or email your report to perlbug@perl.com.

If the bug you want to report is about a nonstandard release of Perl (see "which platforms have Perl on?") "Answer to the question", the release of an executable file, or a non-standard module (such as Tk, CGI, etc.), please refer to its accompanying instructions to determine the most appropriate place to report bugs.

For details, please see Perlbug in the Manual (attached to perl5.004 or later).

What are perl.com, perl.org, and Perl Institute?

Perl.org is the official media of Perl Institute. The motto of TPI (The Perl Institute) is "help others help with Perl" (or almost that). This is a non-profit organization that aims to support the development, documentation, and dissemination of Perl. At present TPI's leaders include Larry Wall, Tom Christiansen, and Randal Schwartz, which you may have seen elsewhere in this article.

Perl.com is a domain registered by Tom Christiansen. He founded the platform long before Perl.org was founded as a public service. This is the public radio of the state of Perl, all of Perl's information exchanges, which do not accept any commercial ads, glossy GIF billboards, or (ah!). ) Java applets.

How do you learn to write an object-oriented program in Perl?

Perltoot (attached to 5.004, or newer) is a good starting point. In addition, Perlobj, Perlref, and perlmod are useful references, while Perlbot offers some very good tips and insights.
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.