The Perl Journal November 2002
Mark-Jason Dominus has launched a mailing list delivering a weekly Perl programming puzzle to subscribers. The quizzes come in two degrees of difficulty"Normal" or "Expert." An example of an expert-level quiz:
Write a subroutine, subst, which gets a string argument, $s. It should search $s and replace any occurrences of $1 with the current value of $1, any occurrences of "$2" with the current value of $2, and so on. For example, if $1, $2, and $3 happen to be "dogs," "fish," and "carrots," then subst("$2, $1, and $3") should return "fish, dogs, and carrots."
To subscribe to the quiz mailing list, send e-mail to perl-qotw-subscribe@plover.com. Past quizzes are temporarily archived at http://www.urth.org/~metaperl/domains/semantic-elements .com/perl/.
Jeff Goff has stepped down as release manager and Keeper of the Keys and Source for Parrot, passing the title on to Steve Fink. In announcing the transfer, Dan Sugalski said, "Steve's been active with Parrot since near the beginning, and I have every confidence in his being able to keep the project moving forward."
A security hole in the Safe module was discovered and reported to the perl.perl5.porters newsgroup by Andreas Jurenda. The problem lies with Safe::reval(), which executes given code in a safe compartment. "But," explained Jurenda, "this routine has a one-time safeness. If you call reval() a second time (or more) with the same compartment, you are potentially unsafe." Version 2.09 of the Safe module, available at http://search.cpan.org/author/ ABERGMAN/Safe/, fixes the problem.
The 2002 recipients of Perl Foundation fundingDamian Conway, Dan Sugalski, and Larry Wallhave posted accounts of their accomplishments during the grant period (which ended in July) at http://www.perlfoundation.org/index.cgi?page=accom. Conway, who supplemented his grant period with a final speaking tour, posted a final blog entry at the beginning of October calling his grant tenure "the toughest year-and-a-half I've ever experienced, but also the most rewarding." During that time, Conway accepted 56 speaking engagements across four continents. He also wrote 21 new modules, 88 "node" entries on the Perl Monks site, four Exegeses, 192 newsgroup messages, and more than 5000 e-mails in response to Perl questions.
In conclusion, Conway announced that he's on vacation for the rest of 2002no mailing lists, no module maintenance, no lectures, no Perl-specific e-mail. He will, however, continue to work on the design of Perl 6.
The Perl Foundation solicits contributions to the grant fund at http://www.perlfoundation.org/index.cgi?page=contrib.
Another way to raise money for the Perl Foundation is by entering Nicholas Clark's Perl Advocacy Spoofathon, which offers six donations of 100 guineas each (a total of about $160 US) to be paid to the Perl Foundation in honor of the best spoof essays submitted.
"There have been several badly researched $foo is better than Perl articles in the recent past, that have irritated myself and many other people in the perl community," explains Clark on Spoofathon (http://www.perl.org/advocacy/spoofathon/why.html). "I can't stop third parties writing these articles. But I do hope I can start to make people treat them with the seriousness that they deserve."
There is no fixed essay deadline; the judges, Michael G. Schwern and Greg McCarroll, will announce the awards at their discretion. Entries can be submitted to spoofathon@perl.org.
ActiveState has released Version 2.0 of its Komodo IDE, optimized for Perl and other open-source languages. New features include automatic generation of web services proxies; GUI dialogs and a Tk-based dialog builder; and (for team development) source-code control integration and a Project Manager utility. The editor includes tools for code reuse, and the syntax highlighting and code commenting functions have been updated. Komodo 2.0 for Windows is available now, while a Linux version is available in beta release. For more details, see http://www.activestate.com/ Komodo/start92.html.
Several new Perl books have been released in the past month. Tim Jenness and Simon Cozens coauthored Extending and Embedding Perl (Manning Publications, 2002), dealing with the use of Perl in C programs. (Extending and Embedding Perl is reviewed in this issue.)
Programming Perl in the .NET Environment, by Yevgeny Menaker, Michael Saltzman, and Robert Oberg (Prentice Hall, 2002) is designed for use as a textbook, beginning with a tutorial on the Perl language and ending with enterprise application integration.
Finally, Embedding Perl in HTML with Mason, by Dave Rolsky and Ken Williams (O'Reilly & Associates, 2002), covers the HTML::Mason framework. Rolsky and Williams describe Mason as "a powerful text templating tool for embedding Perl in text." For more information, see http://www.masonbook.com/.