Perl Slurp-Eaze
One of the common Perl idioms is processing text files line by line: while( <FH> ) { do something with $_ } This idiom has several variants, but the key point is that it reads in only one line…
One of the common Perl idioms is processing text files line by line: while( <FH> ) { do something with $_ } This idiom has several variants, but the key point is that it reads in only one line…
Suppose you encounter a (single-player) riddle or a puzzle that you don’t know how to solve. Let’s also suppose that this puzzle involves moving between several states of the board with an enumerable number of moves emerging from one…
Traditionally this paragraph concerns itself with a few words on what I’ve been up to before finally settling down to get the summary written. But despite the fact that it’s nearly four o’clock, it’s been one of those days…
In this article, I will show how to bring Java code into a Perl program with Inline::Java. I won’t probe the internals of Inline or Inline::Java, but I will tell you what you need to make a Java class available…
It’s Monday morning, the croissants have been baked, the focaccia is glistening with all the extra virgin olive oil I poured on it as it left the oven and, in the airing cupboard, a raisin borodinsky slouches towards full…
First, a disclaimer. I’m not a wiki celebrity. I don’t look good in StudlyCaps. I’m not part of the wiki culture — I’ve never contributed to Ward’s Wiki, never used TWiki, am baffled by MoinMoin, and every time I…
Where does the time go? It seems like only yesterday that I was sat hiding Leon Brocard in the first letters of the first 11 body paragraphs of the last summary. Now, here I am, on the train, typing…
An Embarrassing Confession I’d like to think that I’m a reasonably decent Perl programmer now. I’d like to think that I have a good grasp of how to solve relatively common problems in Perl. But, you know, it hasn’t…
Lumme! Another week, another summary. Every week (almost) we start with the perl6-internals list, so here goes. An Evil task for the interested Our Glorious Leader, Dan Sugalski, last week asked for volunteers to work on making ordered destruction…
James D. Tisdall is the author of the recently released Mastering Perl for Bioinformatics. In my previous article, A Chromosome at a Time with Perl, Part I, I showed you some programming “tricks” that help you avoid the trap…
Good afternoon readers. You find me sitting comfortably and tired after a vaguely frantic week involving large amounts of new (and huge) equipment, the delivery of a new Mini Cooper, and four days offline at a large format photography…
About a year ago, a person asked the Fun With Perl mailing list about some code they had written to do database queries. It’s important to note that this person was posting from an .it address; why will become…
It’s quite possible to end up with digital music files that don’t have good information about what they are. Files that don’t have ID3 information can rely on paths for album information, for example, and that is lost easily. M3U…
Introduction to Searching Usually, when building an application, a lot of thought goes into how the data is entered and updated, rather than finding it again. Finding data is an afterthought, especially when developing with a small dataset. If…
Deadlines, I love the sound they make as they fly past. Those of you who receive this summary via mail may have noticed that this summary is a little late, with any luck it will make up for its…
Editor’s note: In this third and final batch of recipes excerpted from Perl Cookbook, you’ll find solutions and code examples for extracting HTML table data, templating with HTML::Mason, and making simple changes to elements or text. Sample Recipe: Extracting…
James D. Tisdall is the author of the soon-to-be-released Mastering Perl for Bioinformatics. For some time now, the use of Perl in biology has been standard practice. Perl remains the most popular language among biologists for a multitude of…
Welcome to the last Perl 6 summary of my 35th year. Next week’s summary will (in theory) be written on my 36th birthday (a year of being square, so no change there then). I’ll give you fair warning that…
Editor’s note: The new edition of Perl Cookbook has released, so this week we continue to highlight recipes-new to the second edition-for your sampling pleasure. This week’s excerpts include recipes from Chapter 14 (“Database Access”) and Chapter 18 (“Internet…
Welcome to this week’s Perl 6 summary. This week, for one week only I’m going to break with a long established summary tradition. No, that doesn’t mean I won’t be mentioning Leon Brocard this week. Nope, this week we’re going…