Where Wizards Fear To Tread
One of the big new features in perl 5.8 is that we now have real working threads available to us through the threads pragma. However, for us module authors who already have to support our modules on different versions…
One of the big new features in perl 5.8 is that we now have real working threads available to us through the threads pragma. However, for us module authors who already have to support our modules on different versions…
Maybe you’ve heard about closures; they’re one of those aspects of Perl - like object-oriented programming - that everyone raves about and you can’t really see the big deal until you play around with them and then they just click….
Is your Perl program taking too long to run? This might be because you’ve chosen a data structure or algorithm that takes a long time to run. By rethinking how you’ve implemented a function, you might be able to…
Jumbo shrimp, military intelligence - Visual Perl? ActiveState built its reputation by bringing Perl to the Windows platform, thereby extending the reach of Perl and the size and nature of the Perl community. However, regardless of the Windows port,…
In this Perl/Tk article, I’ll discuss balloon help, photos and widget subclassing. Help balloons can be attached to widgets, menu items, and, as we’ll see here, individual canvas items. Subclassing a Perl/Tk widget is also known as creating a…
I’ve recently started learning to play the game of Go. Go and Perl have many things in common - the basic stuff of which they are made, the rules of the game, are relatively simple, and hide an amazing…
wxPerl? If you don’t just use Perl for creating CGI scripts, you’ll probably have to create some kind of front-end for your applications sooner or later. You might use the Curses library, but if you want a nice GUI, you…
Introduction Go on, admit it: You’ve written a templating system. It’s OK, nearly everyone has at some point. You start with something beautifully simple like $HTML =~ s/\$(\w+)/${$1}/g and end up adding conditionals, loops and includes until you’ve created…
Regular Expressions are arguably one of Perl’s most useful and powerful tools. The ability to match complex strings is one of the things that makes Perl the effective “Practical Extraction and Reporting Language” that it is. The regular expression…
A Beginner’s Introduction to POE -> By Dennis Taylor, with Jeff Goff What Is POE, And Why Should I Use It? Table of Contents POE Design A Simple Example That’s All For Today Related Links Most of the programs we…
Editor’s note: this venerable series is undergoing updates. You might be interested in the newer versions, available at: A Beginner’s Introduction to Perl 5.10 A Beginner’s Introduction to Files and Strings with Perl 5.10 A Beginner’s Introduction to Regular Expressions…
Objects and Modules -> Editor’s note: this venerable series is undergoing updates. You might be interested in the newer versions, available at: A Beginner’s Introduction to Perl 5.10 A Beginner’s Introduction to Files and Strings with Perl 5.10 A Beginner’s…
Editor’s note: this venerable series is undergoing updates. You might be interested in the newer versions, available at: A Beginner’s Introduction to Perl 5.10 A Beginner’s Introduction to Files and Strings with Perl 5.10 A Beginner’s Introduction to Regular…
What’s Wrong With This Picture? -> Astute readers had a number of comments about last week’s Program Repair Shop and Red Flags article. Control Flow Puzzle In the article, I had a section of code that looked like this: $_…
s/// and m// -> Editor’s note: this venerable series is undergoing updates. You might be interested in the newer versions, available at: A Beginner’s Introduction to Perl 5.10 A Beginner’s Introduction to Files and Strings with Perl 5.10 A Beginner’s…
What’s wrong with this picture? The Interface The Code open_info_file start_info_file start_next_part read_next_node Looking for the menu Putting It All Together Red Flags Don’t Repeat Code eof() return 0 and return undef Brief Confession What’s wrong with this picture?…
Editor’s note: this venerable series is undergoing updates. You might be interested in the newer versions, available at: A Beginner’s Introduction to Perl 5.10 A Beginner’s Introduction to Files and Strings with Perl 5.10 A Beginner’s Introduction to Regular…
Editor’s note: this venerable series is undergoing updates. You might be interested in the newer versions, available at: A Beginner’s Introduction to Perl 5.10 A Beginner’s Introduction to Files and Strings with Perl 5.10 A Beginner’s Introduction to Regular…
Unprogramming Computing the remainder Splitting the Input Into Chunks Assembling the Result Red Flags Eliminate synthetic code Beware of special cases in loops Don’t apply string operations to numbers Unprogramming A few weeks ago I got mail from Bruce,…
Pod::Parser Notes -> Some of my co-workers noticed the p5p weekly summary discussing (among other things) Pod::Parser. They mentioned it to me, and said they thought it cast me in an unfavorable light. So I’d like to clear up a…