Perl 音标拼音: [p'ɚl]
A {high -level } programming language , started
by {Larry Wall } in 1987 and developed as an {open source }
project . It has an eclectic heritage , deriving from the
ubiquitous {C } programming language and to a lesser extent
from {sed }, {awk }, various {Unix } {shell } languages , {Lisp },
and at least a dozen other tools and languages . Originally
developed for {Unix }, it is now available for many
{platforms }.
Perl 's elaborate support for {regular expression } matching and
substitution has made it the {language of choice } for tasks
involving {string manipulation }, whether for text or binary
data . It is particularly popular for writing {CGI scripts }.
The language 's highly flexible syntax and concise regular
expression operators , make densely written Perl code
indecipherable to the uninitiated . The syntax is , however ,
really quite simple and powerful and , once the basics have
been mastered , a joy to write .
Perl 's only {primitive } data type is the "scalar ", which can
hold a number , a string , the undefined value , or a typed
reference . Perl 's {aggregate } data types are {arrays }, which
are ordered lists of {scalars } indexed by {natural numbers },
and hashes (or "{associative arrays }") which are unordered
lists of scalars indexed by strings . A reference can point to
a scalar , array , hash , {function }, or {filehandle }. {Objects }
are implemented as references "{blessed }" with a {class } name .
Strings in Perl are {eight -bit clean }, including {nulls }, and
so can contain {binary data }.
Unlike C but like most Lisp dialects , Perl internally and
dynamically handles all memory allocation , {garbage
collection }, and type {coercion }.
Perl supports {closures }, {recursive functions }, {symbols }
with either {lexical scope } or {dynamic scope }, nested {data
structures } of arbitrary content and complexity (as lists or
hashes of references ), and packages (which can serve as
classes , optionally inheriting {methods } from one or more
other classes ). There is ongoing work on {threads },
{Unicode }, {exceptions }, and {backtracking }. Perl program
files can contain embedded documentation in {POD } (Plain Old
Documentation ), a simple markup language .
The normal Perl distribution contains documentation for the
language , as well as over a hundred modules (program
libraries ). Hundreds more are available from The
{Comprehensive Perl Archive Network }. Modules are themselves
generally written in Perl , but can be implemented as
interfaces to code in other languages , typically compiled C .
The free availability of modules for almost any conceivable
task , as well as the fact that Perl offers direct access to
almost all {system calls } and places no arbitrary limits on
data structure size or complexity , has led some to describe
Perl , in a parody of a famous remark about {lex }, as the
"Swiss Army chainsaw " of programming .
The use of Perl has grown significantly since its adoption as
the language of choice of many {World -Wide Web } developers .
{CGI } interfaces and libraries for Perl exist for several
{platforms } and Perl 's speed and flexibility make it well
suited for form processing and on -the -fly {web page } creation .
Perl programs are generally stored as {text } {source } files ,
which are compiled into {virtual machine } code at run time ;
this , in combination with its rich variety of data types and
its common use as a glue language , makes Perl somewhat hard to
classify as either a "{scripting language }" or an
"{applications language }" -- see {Ousterhout 's dichotomy }.
Perl programs are usually called "Perl scripts ", if only for
historical reasons .
Version 5 was a major rewrite and enhancement of version 4 ,
released sometime before November 1993 . It added real {data
structures } by way of "references ", un -adorned {subroutine }
calls , and {method } {inheritance }.
The spelling "Perl " is preferred over the older "PERL " (even
though some explain the language 's name as originating in the
acronym for "Practical Extraction and Report Language "). The
program that interprets /compiles Perl code is called
"perl ", typically "/usr /local /bin /perl " or "/usr /bin /perl ".
Latest version : 5 .005_03 stable , 5 .005_62 in development , as
of 1999 -12 -04 .
{(http ://perl .com /)}.
{Usenet } newsgroups : {news :comp .lang .perl .announce },
{news :comp .lang .perl .misc }.
["Programming Perl ", Larry Wall and Randal L . Schwartz ,
O 'Reilly & Associates, Inc. Sebastopol, CA. ISBN
0-93715-64-1].
["Learning Perl" by Randal L. Schwartz, O'Reilly & Associates,
Inc., Sebastopol, CA].
[{Jargon File}]
(1999-12-04)Practical Extraction and Report Language (
PERL )
Perl : /
perl /,
n . [
Practical Extraction and Report Language ,
a .
k .
a .
Pathologically Eclectic Rubbish Lister ]
An interpreted language developed by Larry Wall ,
author of patch (
1 )
and rn (
1 )).
Superficially resembles awk ,
but is much hairier ,
including many facilities reminiscent of sed (
1 )
and shells and a comprehensive Unix system -
call interface .
Unix sysadmins ,
who are almost always incorrigible hackers ,
generally consider it one of the languages of choice ,
and it is by far the most widely used tool for making ‘
live ’
web pages via CGI .
Perl has been described ,
in a parody of a famous remark about lex (
1 ),
as the Swiss -
Army chainsaw of Unix programming .
Though Perl is very useful ,
it would be a stretch to describe it as pretty or elegant ;
people who like clean ,
spare design generally prefer Python .
See also Camel Book ,
TMTOWTDI .
安装中文字典英文字典查询工具!
中文字典英文字典工具:
复制到剪贴板
英文字典中文字典相关资料:
operators - What is the difference between || and or in Perl . . . 53 From Perl documentation: OR List operators On the right side of a list operator, it has very low precedence, such that it controls all comma-separated expressions found there
What is the meaning of @_ in Perl? - Stack Overflow 128 perldoc perlvar is the first place to check for any special-named Perl variable info Quoting: @_: Within a subroutine the array @_ contains the parameters passed to that subroutine More details can be found in perldoc perlsub (Perl subroutines) linked from the perlvar: Any arguments passed in show up in the array @_
Whats the use of lt; gt; in Perl? - Stack Overflow @pst, <> is not a file handle, "null" or otherwise It's an operator Specifically, the readline operator There's a reference to it as the "angle operator" in perlvar, although there isn't actually any such operator The angle brackets are used by two operators: readline or glob The operator depends on the contents of the brackets
Perl flags -pe, -pi, -p, -w, -d, -i, -t? - Stack Overflow Below are the flags that I encounter most often, and I don't have a clue what they mean: perl -pe perl -pi perl -p perl -w perl -d perl -i perl -t I will be very grateful if you tell me what each of those mean and some use cases for them, or at least tell me a way of finding out their meaning
regex - What is ^ and i in Perl? - Stack Overflow The match operator is the syntax that tells the Perl interpreter: here comes a regex In Perl, the match operator is normally delimited by ' ' at start and end, but you can use delimiters (e g , m{^foo})
How do I perform a Perl substitution on a string while keeping the . . . In Perl, what is a good way to perform a replacement on a string using a regular expression and store the value in a different variable, without changing the original? I usually just copy the stri
Whats the safest way to iterate through the keys of a Perl hash? If I have a Perl hash with a bunch of (key, value) pairs, what is the preferred method of iterating through all the keys? I have heard that using each may in some way have unintended side effects
Should I choose ActivePerl or Strawberry Perl for Windows? Strawberry Perl also comes with MinGW which means that Strawberry Perl can use quite a few XS modules directly from CPAN without any modification The MinGW distribution comes with gcc, make, ld and other tools to help you build modules I think Strawberry Perl also comes with a few modules that let you install PPMs (Perl Package Manager files)
Perl - Multiple condition if statement without duplicating code . . . This is a Perl program, run using a terminal (Windows Command Line) I am trying to create an quot;if this and this is true, or this and this is true quot; if statement using the same block of cod