-------- Original Message -------- Subject: Perl.com Newsletter: Embperl (03/13/2001) Date: Wed, 14 Mar 2001 17:14:51 -0800 From: Perl Newsletter <[EMAIL PROTECTED]> To: "Perl Newsletter" <[EMAIL PROTECTED]> www.perl.com update -------------------------------------- The Email for www.perl.com Subscribers ===================================================================== Sponsored by Allaire Reserve now for a FREE Allaire JRun 3.0 Seminar! Learn why JRun is the top choice for building and deploying secure e-business apps with Java. Attendees receive a copy of JRun Server Developer Edition and Allaire?s Developing Applications with JRun manual. You may also win free JRun products! Register at: http://ads.allaire.com/allaire/f1perl.html ===================================================================== Greetings, perl.com subscribers. This is Schuyler Erle, web hacker for the O'Reilly Network, and it is my honor and pleasure to bring you the latest www.perl.com newsletter. So, without further ado, here's what's new in the world of Perl. * Perl at large. The big buzz in Perl today is a Slashdot post to the effect that a couple of high school sophmores attracted the attention of their school administrators, and eventually even the police, all thanks to a little confusion over the difference between scalar and list contexts in perl. # Scalar context assignment: Store the entire output of the well-known # UNIX fortune(1) program. my $f = `fortune`; ... is not the same as ... # List context assignment, with one element on the left side: Store # *just the first line* of the output of fortune(1). my ($f) = `fortune`; Apparently, the lad in question used the latter code to generate random quotes on his webpage, rather than the former scala context code, which is probably what he wanted. When school administrators viewed the site, they got a page containing, among other things, just the first line of a William Gibson quote mentioning smuggling firearms, totally out of context and without attribution. The rest of the story isn't hard to imagine, but you can read all about it at: http://slashdot.org/article.pl?sid=01/03/13/208259 The article concludes by quoting from the Camel 3: "You will be miserable until you learn the difference between scalar and list context." Yeah, no kidding. * What's new on www.perl.com? This week, www.perl.com introduces Neil Gunton with an article on using Embperl to simplify web site construction and maintenance. Embperl, as you may be aware, is a web application platform written in perl, that's typically run in concert with Apache and mod_perl. Gunton details the implementation and use of EmbperlObject to produce reusable web page objects which can greatly aid the development of modular web sites of all sizes. Once again, and as always, Simon Cozens returns with his truly smashing perl5-porters digest. This week, come on down, and listen as Simon spins wild yarns of Plain Old Documentation issues, undocumented CV flags, the mysterious sub x { sub {} } memory leak, and testing features that even Schwern doesn't understand. Until next week, noble Perl hackers! We now return you to your regularly scheduled e-mail. SDE ==================================================================== ONLamp.com: O'Reilly Network's site for high-performance web serving. ONLamp.com helps you optimize your use of the open source web platform. Whether you use some or all of the LAMP technologies-- Linux, Apache, MySQL, Perl/PHP/Python and much more--you'll learn from informative articles, insightful interviews, and helpful resources, with the experience and quality you expect from O'Reilly. http://onlamp.com ==================================================================== Article: Creating Modular Web Pages With EmbPerl http://www.perl.com/pub/2001/03/embperl.html?wwwrrr_20010313.txt If you have ever wished for an "include" HTML tag to reuse large chunks of HTML, you are in luck. Neil Gunton explains how Embperl solves the problem. Article: Writing GUI Applications in Perl/Tk http://www.perl.com/pub/2001/03/gui.html?wwwrrr_20010313.txt Nick Temple shows how to program a graphical Point-of-Sale application in Perl, complete with credit card processing. Article: DBIx::Recordset VS DBI http://www.perl.com/pub/2001/02/dbix.html?wwwrrr_20010313.txt Terrance Brannon explains why DBI is the standard database interface for Perl but should not be the interface for most Perl applications requiring database functionality. Article: The e-smith Server and Gateway: a Perl Case Study http://www.perl.com/pub/2001/02/esmith.html?wwwrrr_20010313.txt Kirrily "Skud" Robert explains the Perl behind the web-based administrator for the e-smith server. ============================================================ Sponsored by Thawte ** FREE Apache SSL Guide from Thawte ** Planning Web Server Security? Find out how to implement SSL! Get the free Thawte Apache SSL Guide and find the answers to all your Apache SSL security issues and more at: http://www.thawte.com/ucgi/gothawte.cgi?a=n122531080018000 ============================================================ Sister Sites: --------------------------------- O'Reilly Network http://www.oreillynet.com The Source for Open and Emerging Technologies XML.com http://xml.com/ XML from the inside out. ONLamp.com http://onlamp.com O'Reilly Network's High Performance Web Development site O'Reilly and Associates http://www.oreilly.com/ O'Reilly computer books, software and online publishing. ----------------------------------------------------------------- If you want to cancel a subscription to this newsletter, send an email to [EMAIL PROTECTED] NOTE: Please make certain to unsubscribe from the email address at which you receive this message For non-automated human help email [EMAIL PROTECTED] ----------------------------------------------------------------- -- Brian Mathis Direct Edge http://www.directedge.com -- For information on unsubscribing from this list, please visit http://rochester.pm.org