×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Perl: Difference between revisions

    Content added Content deleted
    No edit summary
    imported>mutante
    m (Replacing page with '<jargon />')
    Line 1: Line 1:
    <jargon />
    Perl (Practical Extraction and Report Language)

    Perl is a language optimized for scanning arbitrary text files, extracting information from those text files, and printing reports based on that information. It's also a good language for many system management tasks. The language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal).

    Perl combines (in the author's opinion, anyway) some of the best features of [[C]], [[sed]], [[awk]], and [[sh]], so people familiar with those languages should have little difficulty with it.

    Perl is designed to assist the programmer with common tasks that are probably too heavy or too portability-sensitive for the shell, and yet too weird or short-lived or complicated to code in [[C]] or some other [[UNIX]] glue language.

    Once you become familiar with Perl, you may find yourself spending less time trying to get shell quoting (or [[C]] declarations) right, and more time reading Usenet news and downhill snowboarding, because Perl is a great tool for leverage. Perl's powerful constructs allow you to create (with minimal fuss) some very cool one-up solutions or general tools. Also, you can drag those tools along to your next job, because Perl is highly portable and readily available, so you'll have even more time there to read Usenet news and annoy your friends at [[karaoke]] bars.

    Like any language, Perl can be "write-only"; it's possible to write programs that are impossible to read. But with proper care, you can avoid this common accusation. Yes, sometimes Perl looks like line noise to the uninitiated, but to the seasoned Perl programmer, it looks like checksummed line noise with a mission in life. If you follow the guidelines of this book, your programs should be easy to read and easy to maintain, but they probably won't win any obfuscated Perl contests.

    * http://www.gnu.org/software/perl/perl.html
    See also:
    * [[Perl/1_liners]] Use perl from your command line
    * [[Perl/FileFunctions]]
    ----

    (extract from O'Reilly

    Revision as of 07:04, 13 November 2007

    <jargon />

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.