| dbpprop:abstract
|
- A Perl module is a discrete component of software for the Perl programming language. Technically, it is a particular set of conventions for using Perl's package mechanism that has become universally adopted. discuss|Packages and modules A module defines its source code to be in a package (much like a Java package), the Perl mechanism for defining namespaces, e.g. CGI or Net::FTP or XML::Parser; the file structure mirrors the namespace structure . Furthermore, a module is the Perl equivalent of the class when object-oriented programming is employed. discuss|Packages and modules A collection of modules, with accompanying documentation, build scripts, and usually a test suite, compose a distribution. The Perl community has a sizable library of distributions available for search and download via CPAN. Perl is a language allowing many different styles of programming. You're as likely to find a module written in a procedural style as object-oriented, both are considered equally valid according to what the module needs to do. Modules might also be used to mixin methods or be a pragma which has an effect immediately upon being loaded. Modules can even be used to alter the syntax of the language. The effect of Perl modules are usually limited to the current scope in which it was loaded. It is common for Perl modules to have embedded documentation in Perl's Plain Old Documentation format. POD imposes little structure on the author. It is flexible enough to be used to write articles, web pages and even entire books such as Programming Perl. Contrast with javadoc which is specialized to documenting Java classes. By convention, module documentation typically follows the structure of a Unix man page. The language of Perl is defined by the single implementation (referred to as "perl") and is added to (and in rare occasions taken away from) each new release. For this reason it is important for a module author to be aware what features they're making use of and what the minimum required version of perl is. The code on this page requires perl 5.6.0 which is considered rather old by now.
- Un módulo de Perl es un mecanismo para usar bibliotecas de código externas a un programa Perl, permitiendo que un simple archivo contenga rutinas comunes a varios programas. Perl llama a estos archivos módulos. Los módulos Perl normalmente se instalan en varios directorios cuyos caminos son indicados cuando el intérprete perl es compilado por primera vez; en los sistemas operativos Unix, los caminos típicos incluyen /usr/lib/perl5, /usr/local/lib/perl5, y varios otros subdirectorios. Perl viene con un pequeño conjunto de módulos principales. Algunos de estos realizan tareas de mantenimiento o arranque, como el ExtUtils::MakeMaker, que se usa para la construcción e instalación de otros módulos; otros, como el CGI. pm, son de uso más mundano. Sin embargo, los autores de Perl no esperan que este grupo limitado de módulos cubra todas las necesidades.
- Модуль Perl — отдельный программный компонент языка программирования Perl. Каждый модуль имеет уникальное имя, например, CGI, Template или Net::FTP, XML::Parser и соответствующее ему имя файла . Программистам, пишущим на Perl, доступно большое количество модулей на CPAN — крупнейшем хранилище модулей. Perl допускает использование различных стилей программирования; существуют различные модули: как написанные в процедурном стиле, так и те, что являются объектно-ориентированными. Распространённой практикой является включение в модули документации в формате POD, позволяющем структурировать информацию. POD, обладая определённой структурой, в то же время достаточно гибок: с его помощью можно писать статьи, веб-страницы и даже целые книги, такие как Programming Perl — это выгодно отличает его от javadoc, специально ориентированного на документирование классов Java. Традиционно, структура документации модулей схожа с Unix man page.
|
| rdfs:comment
|
- A Perl module is a discrete component of software for the Perl programming language. Technically, it is a particular set of conventions for using Perl's package mechanism that has become universally adopted. discuss|Packages and modules A module defines its source code to be in a package (much like a Java package), the Perl mechanism for defining namespaces, e.g. CGI or Net::FTP or XML::Parser; the file structure mirrors the namespace structure .
- Un módulo de Perl es un mecanismo para usar bibliotecas de código externas a un programa Perl, permitiendo que un simple archivo contenga rutinas comunes a varios programas. Perl llama a estos archivos módulos. Los módulos Perl normalmente se instalan en varios directorios cuyos caminos son indicados cuando el intérprete perl es compilado por primera vez; en los sistemas operativos Unix, los caminos típicos incluyen /usr/lib/perl5, /usr/local/lib/perl5, y varios otros subdirectorios.
- Модуль Perl — отдельный программный компонент языка программирования Perl. Каждый модуль имеет уникальное имя, например, CGI, Template или Net::FTP, XML::Parser и соответствующее ему имя файла .
|