Perl Learning Guide

Source: Internet
Author: User
Tags learn perl
Http://www.mdbbs.org/thread-28471-1-1.html This is a reference method when I learn Perl, I feel very good, share with you:

Each person has different learning methods. The following are some examples for your reference.

  • If Perl is the first programming language you have learned, we recommend that you first read some programming basics, process control, logic, and design knowledge. _ Do you have any good Chinese books to introduce? _
  • If you have learned other languages, you can start with learning the Perl syntax [: http://www.oreilly.com.cn/book.php? Bn = 7-5083-1113-2 Perl language entry], or from the Perl's own documentation. When you understand the Perl syntax, try the examples in the book and write some simple programs. Soon you will find that Perl is similar to the language you have learned before.
  • If you are an experienced programmer, you may start by reading the program and trying to understand it. Although different languages have many similarities, you may be confused in many cases. We recommend that you at least first understand the basic syntax of Perl.
  • An almost general method is to first learn documents or books, try the program example, try to modify, and then modify the error. Then, read the program, try the complex program, and repeat the above steps. Reading + practice is the best way to learn.

At the same time,

  • Set a learning goal for yourself, why learning Perl, and what to do with Perl. Knowledge is learned in practice. Try to use Perl to write a message book, home album, and log analysis program. Do not plan to write a complex program for an online store as soon as possible. from an early stage, it is easier to see the progress of learning and inspire yourself to learn.
  • Closed-door self-taught people often need to spend more effort to learn, and often take more detours. If you can participate in the Perl community when learning Perl, You can exchange experience with other Perl users for help. If you are good at English, you can visit websites such as perlmonks.org and have a lot of Perl experts.

Tips

  • Query documents

If you do not know how to use a function, use the perldoc function name on the command line to check the Perl documentation. You can also replace the function name with the module name to view the module documentation. For example, perldoc LWP: Simple. If the English language is difficult, read Oreilly books.

  • Program debugging

No matter how short your program is, using use warnings and use strict can greatly help you find errors. Fortunately, klaus has translated a wonderful debugging article, Brian's omnipotent guide to Perl.

  • The wisdom of asking questions and the ability to find answers

Many questions encountered at the beginning have been asked by others and may have been answered. Therefore, you must learn to use google or forum to search for your answers. When you encounter a problem, you can express the problem, read the relevant documentation, and try to write a program to solve it yourself. If there is no clue, I will try to ask a question in the forum or a user group. Generally, we are more willing to help those who have already studied their own problems, those who only need the answer are often ignored. Language learning is a process of self-repeat and trying. Do not rely on others' help. If you have time, you can look at the wisdom of asking questions to help you get help from others faster. The following 4 are JackyCheng's insights (from PerlChina Forum http://xrl.us/fz9e)

  • I personally think that learning Perl is a lifelong task. To get started, first understand the basics of Perl basic syntax, operators, functions, control processes, and other languages. Then, after getting started, continue to develop as needed.
  • Perl is a hodgedge of languages with many branches, so I suggest you determine what to do with Perl first. If you simply want to learn perl without specific purpose, it is difficult to integrate it too much during the getting-started process. You just need to know something that is not practical.
  • The most important thing to learn about Perl is practice. Many things cannot be solved even by top experts, so they need to be diligent in practice. I personally think you should first understand the perl culture, so that you can add more love for perl.
  • In addition, there is a famous saying in perl that "there are great ways to connect to Rome". Remember that there are more than one way to solve anything. Choose the one that best suits you and wish you success.

For more information about Perl learning resources, see Perl. A book that is full of loopholes will only lead you astray. Most people will recommend Oreilly's Perl books: http://www.oreilly.com.cn/indexcat.php? C = perl

  • The Perl language (the third edition) is also called camels. For beginners. (The latest version is the fifth edition. It is applicable to the English and Chinese versions of perl5.10)
  • Advanced Perl programming, also known as the Panther book, should be an upgraded version of learn perl. If you want to become a perl hacker or a master, you must read it.
  • The Perl language programming (the third edition) (programming perl) is also called a big camel. Contains all the knowledge of Perl, which is suitable for reading and searching. There is a license in the English manual attached to perl.
  • CGI programming-use Perl (version 2) to write CGI programs using Perl.

Recommendation of online learning resources

  • English Resources

    • Perlmonks tutorial
    • CGI tutorial
    • Randal L. Schwartz's Perl Column
    • Perl.com
    • Perl usage and tips
  • English Document Resources

    • Online perldoc documentation
    • If you have activeperl installed on drive C, refer to the built-in Local Document [url = file: // C:/Perl/html/index.html] file: // C: /Perl/html/index.html [/url]
  • Chinese Resources

    • Perl learning traditional Edition
    • Programming Perl 3 Chinese Version
  • CPAN Resources

    • CPAN Module
    • CPAN Image
    • CPAN module search
    • CPAN domestic Image
  • Activeperl ppm Resources

    • Download activeperl ppm
    • Activeperl 5.6 ppm download
    • Activeperl 5.8 ppm download
    • Bribes ppm Repository
  • Strawberry Perl

    • Strawberry Perl is applicable to Windows and supports installation of the CPAN module.

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.