Results 1 to 6 of 6

Thread: Standard library modules included with Perl 5001

  1. #1
    Join Date
    Sep 2010
    Posts
    15

    Standard library modules included with Perl 5001

    I am here to know more about the standard library modules that are included with Perl 5001. We have given an assignment to write on this topic. After Googling a lot, I decided to post over here. I was not successful in finding any information related to my topic. So remembered you members, and now I am hoping for some help from your side. Please provide some standard library modules included with Perl 5001. Any more information will be grateful.

  2. #2
    Join Date
    Feb 2010
    Posts
    796

    Re: Standard library modules included with Perl 5001

    The following are some standard library modules included with Perl 5001 :
    • File / basename
    • File / CheckTree
    • File / Find
    • File / Path
    • Getopt / Long
    • Getopt / Std
    • I18N/Collate
    • IPC/Open2
    • IPC/Open3
    • Math / BigFloat
    • Math / BigInt
    • Math / Complex
    • Net / Ping
    • Search / Dict
    • Sys / Hostname
    • Sys / Syslog
    • Term / Cap
    • Term / Complete
    • Test / Harness
    • Text / Abbrev
    • Text / ParseWords
    • Text / Soundex Text / Tabs
    • Time / Local
    • AnyDBM_File
    • AutoLoader
    • AutoSplit
    • Benchmark
    • Carp
    • Cwd
    • DB_File
    • DynaLoader
    • Inglese
    • Env
    • Exporter
    • Fcntl
    • FileHandle
    • GDBM_File
    • POSIX
    • SDBM_File
    • Shell
    • Socket
    • SubstrHash
    • TieHash

  3. #3
    Join Date
    Feb 2010
    Posts
    616

    Re: Standard library modules included with Perl 5001

    Necessary to distinguish between keyword flow control ("if", "while", "for", etc.) by the built-in ("print", "split", "stat") that are compiled with the interpreter, by library calls ("find"). Perl has a large set of built-in functions, which alone replace most of the commands and Unix system calls. The set is very powerful and well-designed for each command is taken as default the most common parameters, to paraphrase Larry, "in general, they (the controls) do what they want, unless you want consistency". The built-in functions are strictly Unix-like, even in non-Unix versions of Perl (gotta fix some standard). There are several functions on strings (split, chop, substr, chr ...), array (push, pop, shift, unshift, join) and hash (keys, values, ...).

  4. #4
    Join Date
    Feb 2010
    Posts
    488

    Re: Standard library modules included with Perl 5001

    Each Then there are functions to handle files (chdir, unlink, mkdir, rmdir, rename, chmod ...), processes (fork, wait, kill ...), the socket (bind, connect, listen ...) and various tests on file (-e,-z,-M test ...), including a "heuristic" to determine if a file is binary or not (-T,-B). There are also functions similar to Unix commands (grep, sort, tr). To quote again open that opens not only files but also network connections and even run another command reads the output as if it were a file. The standard library is written in Perl, and of course is the source: it includes many features that need but do not make sense to have as a built-in or for reasons of portability opportune not have the built-in. For example, the function that returns the current directory is not among the built-in but in the standard library: it varies between different operating systems, and is easier to implement a case directly in Perl.

  5. #5
    Join Date
    Apr 2009
    Posts
    89

    Re: Standard library modules included with Perl 5001

    Like everything in Perl, the content of the standard library is very handy. The initial find used in the example is part of the library, and are part of the management mechanism of the database files using hash (the mechanism of the "tie" mentioned earlier). To be precise, the "tie" is a built-in that relies on the modules that implement certain functions. We (we quote at random): a module for analyzing the parameters (Getopt) modules to interact with other programs (and Open2 open3 that generalize the mechanism of open), management of integers, float and complex numbers of arbitrary size (BigInt, BigFloat, Complex), benchmark, system information (Hostname, Syslog).

  6. #6
    Join Date
    Jan 2009
    Posts
    120

    Re: Standard library modules included with Perl 5001

    We also remember the countless extensions perl: firstly the management of databases: "oraperl" for connecting to Oracle database, "syperl" for connecting to Sybase, and I will stop here because the list is long. Perl is very suitable for interacting with databases, and as the various implementations are differences between them, was a project that aims to standardize the interface to Perl's database. The standard is called DBI (DataBase Interface) and is based on SQL and the various implementations are called DBD (database driver). Some implementation is already in beta, but many others are in alpha or under construction. There are several perl extensions for managing the user interface. We simply quote TkPerl, with a perl built-in to use the Tk graphics library freeware, very well built and powerful, which accompanies the Tcl language. This library has contributed greatly to the success of Tcl (by many called the Visual Basic for Unix) and allows the use of TkPerl directly from Perl. Finally of course there are plenty of scripts and Perl modules available: almost everything that is available is collected in a file called CPAN (Comprehensive Perl Archive Network), of which there are many mirror sites around the world.

Similar Threads

  1. Replies: 3
    Last Post: 26-03-2012, 03:25 PM
  2. Replies: 6
    Last Post: 03-07-2011, 10:20 PM
  3. Replies: 4
    Last Post: 13-04-2011, 10:35 AM
  4. Replies: 4
    Last Post: 28-12-2010, 08:38 AM
  5. Videocon satelite DVD 5001 or 5002
    By BakshiK in forum India BroadBand
    Replies: 5
    Last Post: 15-12-2009, 10:02 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,167,555.93189 seconds with 16 queries