Free Newsletters

   All InfoWorld Newsletters
Tech Watch | InfoWorld Staff » Perl language upgraded

December 21, 2007 | Comments: (0)

Perl language upgraded

The first major upgrade to the Perl dynamic language in more than five years was released this week, the Perl Foundation said.

Version 5.10 of the open source language adds language features and improves the Perl interpreter itself. While used in Web application development, Perl also can be found in bioinformatics applications such as gene-sequencing, said Perl representative Andy Lester.

A key feature is a smart match operator, which will compare variables in an array and makes it easier for programmers to perform functions such as finding an element in an array or an element in a hash, Lester said. Also featured is a switch statement capability.

Regular expressions have been made more powerful and programmers can now use named captures in regular expressions rather than counting parentheses for positional captures. Recursive patterns are supported for making many useful constructs especially in parsing.

Also included in version 5.10 is state variables allowing variables to persist between calls to subroutines. User-defined pragmata allows users to write modules to influence the way way Perl behaves. Better error messages are highlighted as well.

The Perl interpreter is faster and has a smaller memory footprint. The installation of Perl can be relocated, which benefits systems administrators and operating system packagers, the foundation said. Source code is more portable as well.

Also featured are a defined-or operator, which relates to how Perl keeps track of true or false statements, and field hashes for inside-out objects, for implementing data-hiding in Perl. Data can be hidden so users cannot modify data in an object.

Perl 5.10 can be downloaded here.

Posted by Paul Krill on December 21, 2007 08:59 AM


RATE THIS ARTICLE:





 

  •  
  • COMMENTS





Technology White Papers

 

InfoWorld Technology Marketplace

  • Protect Your Data with SSL - Discover how to increase customer confidence in your site with the latest solution in SSL, Extended Validation (EV) SSL ...
  • Need simple, low cost server virtualization? - Do more with less. Support fewer servers. Simplify disaster recovery. Implement proven, easy-to-use server virtualization...
  • Virtually Limitless Virtual Storage - Do you need virtualization space savings of 50% or more with virtually no performance impact? You might be able to get storage...
  • Invisible IT? - The goal of IT is to become an invisible entity within a larger organization. Eliminating visibility and road blocks IT ...
  • It Really Is Easy to be Green - "Green IT" is a popular concept. And IT organizations are learning the influence that IT purchase decisions have on data...
  • Key Strategies For SOA Testing - SOA requires a unique approach to testing. Unless you're willing to reorient your testing procedures and technology now,...

» Technology White Papers Library

Technology White Papers by Topic

Technology White Papers E-mail Alert

Find out when the latest white paper is available:
 
 
» BUY A LINK NOW

Sponsored Technology Links