Click here to learn
about this Sponsor:
Home  |  News  |  Articles  |  Polls  |  Forum

Keywords: Match:
First release of perl in five years arrives
Dec. 21, 2007

Just in time for Christmas, there's a new version of perl, the first in over five years. The first update since 2002 to the "practical extraction and report language," perl 5.10 adds both new language features and an improved perl interpreter, according to community site Perl Buzz.

Perl is a dynamic scripting language widely used in everything from Linux system utilities to web servers to full-blown graphical enterprise applications. During its 20-year history, it gained massive popularity by assimilating the syntax from many predecessors, making it really easy to use for anyone already versed in sed, awk, grep, csh, C/C++, Lisp, and so on.

Perl's syntactical flexibility sometimes makes perl scripts challenging to read, however, and languages like python with rigid syntax structure have arguably gained ground in recent times over perl, for applications that are developed collaboratively. Additionally, scripting languages specially-made for use on the Web, like PHP and Ruby, have eroded some of perl's once formidable share of the dynamic web server scripting scene.

What's new?

First among new features is a "smart match operator" that appears aimed at making perl's relatively strong typing easier to work with. The "~~" operator apparently guesses the type from context, allowing lazy comparisons like if ( $needle ~~ @haystack ) ....

Of this new feature, Perl Buzz comments, "The result is that all comparisons now just Do The Right Thing, a hallmark of Perl programming."

Other new language features include:
  • A switch statement said to go "far beyond" those found in C, C++ or Java
  • Regex improvements:
    • "Named captures" aimed at reducing the need for positional captures
    • Recursive patterns said to be useful in parsing
  • State variables that persist between subroutine calls
  • User defined pragmata
  • A "defined-or" operator
  • Field hashes for inside-out objects
  • Better error messages

Perl is an interpreted, rather than a compiled language. Thus, the human-readable code is interpreted on the fly by a perl interpreter.

With the 5.10 release, the interpreter gains speed, while shedding weight, Perl Buzz claims. Other interpreter improvements include:
  • Relocatable installation, for more filesystem flexibility
  • Source code is more portable
  • Many small bug fixes
A complete changelog can be found here. Also available are presentation slides by perl guru Ricardo Signes. The Perl Buzz release notes can be found here.



Related Stories:



(Click here for further information)


7 Advantages of D2D Backup
For decades, tape has been the backup medium of choice. But, now, disk-to-disk (D2D) backup is gaining in favor. Learn why you should make the move in this whitepaper.

4 Legal Reasons to Control Internet Access
The Internet is obviously a valuable resource for many organizations. However, many are exposed to legal liability concerns because they fail to control Internet access. Learn if you're safe in this white paper.

Rapidly Resolve J2EE Application Problems
Whether you are in the process of building J2EE applications or have J2EE applications already running in production, you must ensure that they deliver the expected ROI. Learn how in this white paper.

Load Testing 2.0 for Web 2.0
There are many unknowns in stress testing Web 2.0 applications. Find out how to test the performance of Web 2.0 in this white paper.

Build Better Games Online
For the game infrastructure providers, life is complex. Making money from games has become more complicated. Why? Find out in this white paper.

Building a Virtual Infrastructure from Servers to Storage
This white paper discusses the virtual storage solutions that reduce cost, increase storage utilization, and address the challenges of backing up and restoring Server environments.

Gaining Faster Wireless Connections with WiMAX
Welcome to what is quickly becoming the hyperconnected world where anything that would benefit from being connected to the network will be connected. Learn more in this white paper.

Is Your Desktop a Security Threat?
The new wave of sophisticated crimeware not only targets specific companies, but also targets desktops and laptops as backdoor entryways into those business’ operations and resources. Learn how to stay safe in this white paper.

Increasing SAN Reliability by 100 Percent
Storage area networks (SAN) are a strong part of storage plans. Learn how to increase your reliability and uptime by 100 percent in this case study.

 


Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
Click here for a profile of each sponsor:
PLATINUM SPONSORS
GOLD SPONSORS
(Become a sponsor)

ADVERTISEMENT
(Advertise here)

Check out the latest Linux powered...

mobile phones!

other cool
gadgets
HOWTOs: from DevShed & IBM DeveloperWorks:



BREAKING NEWS

• Article explores Linux hot-patching utility
• Sun demo's RIA tools on Android
• Panel PCs support PoE, Linux
• New Palms on horizon?
• Embedded track added to Linux conference
• Ubuntu ported to a PDA
• Linux-friendly SBC hosts dual quad-core Xeons
• Embedded Linux SQL database adds Java, C# bindings
• Lightweight, embedded graphics framework rev'd
• Shock resistant automation computer runs Linux
• Linux phone maker updates tools
• Qt rev'd
• Linux-compatible SBC boasts small size, low heat
• Miniature Linux PC targets military apps
• Sun launches OpenSolaris


Most popular stories -- past 30 days:
• Ubuntu ported to ARM
• Linux still top embedded OS
• Linux gains new architecture support
• Linux 2.6.25 release bolsters ARM
• Linux-based diskless notebook costs under $300
• Low-cost MP3 player gains fancy Linux port
• Dutch UMPC runs Ubuntu Linux
• Mini-notebook boasts Linux, near-fullsize keyboard
• PC/104 module runs x86 Linux on 1.85 Watts
• Low-cost Linux-based NAS device supports RAID 1
• Free router distro gains wild WiFi features


Linux-Watch headlines:
• Sun launches OpenSolaris
• Via tiptoes toward openness
• Linux certification comes to Italy
• Installing Ubuntu Hardy Heron as a web hosting server
• Black Duck Buys Koders
• Open source conference co-locates with Ubuntu show
• Ubuntu 8.04 ready to challenge Windows
• KDE Linux reaches 52 million Brazilian kids
• Free x86-based Linux router distro rev'd
• Two weeks with Fedora 9


Also visit our sister site:


Sign up for LinuxDevices.com's...

news feed

Home  |  News  |  Articles  |  Polls  |  Forum  |  About  |  Contact
 
Use of this site is governed by our Terms of Service and Privacy Policy. Except where otherwise specified, the contents of this site are copyright © 1999-2008 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise is prohibited. Linux is a registered trademark of Linus Torvalds. All other marks are the property of their respective owners.