PERL PROGRAMMERS AND DEVELOPERS

 
Web perlcoder

Wednesday, November 08, 2006

Regarding Todays perl 5+ version

posted by Nirmal Jain at 12:54 AM

Usability enhancements

It is now possible to write much more readable Perl code. (How any C-like language can be called readable is still beyond me!)
Simplified grammar

The new grammar is one half the size of the old one. Many of the arbitrary grammar rules have been regularized. The number of reserved words has been cut by two-thirds. Despite this, nearly all old Perl scripts will continue to work the same.

Lexical scoping

Perl variables may now be declared within a lexical scope.
Arbitrarily nested data structures Any scalar value, including any array element, may now contain a reference to any other variable or subroutine.

Modularity and reusability

The Perl library is now defined in terms of modules that can be shared easily among various packages.

Object-oriented programming

A package can function as a class. Dynamic multiple inheritance and virtual methods are supported in a straightforward manner and with very little new syntax. File handles may now be treated as objects.

Embeddability and Extensibility

Perl may now be embedded easily in your C or C++ application and can either call or be called by your routines through a documented interface.

POSIX compliant

A major new module is the POSIX module, which provides access to all available POSIX routines and definitions via object classes, where appropriate.

Package constructors and destructors

The new BEGIN and END blocks provide a means to capture control as a package is being compiled and after the program exits.

Multiple simultaneous BM implementations

A Perl program may now access DBM, NDBM, SDBM, GDBM, and Berkeley DB files from the same script, simultaneously.

Subroutine definitions may be autoloaded

The AUTOLOAD mechanism enables you to define any arbitrary semantics for undefined subroutine calls.

Regular expression enhancements

You can now specify non-greedy quantifiers and performing grouping without creating a back reference.You can write regular expressions with embedded white space and comments for readability. A consistent extensibility mechanism has been added that is upwardly compatible with all old, regular expressions

Leave Comments / Print Page / Email Article/ Permalink/ Top of Page

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home


 
Web perlcoder