Category ‘Perl‘

 
 

PerlPod gets new home

PerlPod is a command line podcatcher. It will fetch your favorite podcasts. This long dormant project was recently picked by Jonathan Hopkiss. He has extended it to use gnupod to copy the podcasts to your iPod. You can then listen to them at your convenience.

Get PerlPod

Perl File IO

I was amazed to see how simple Perl makes it to read the lines of a file into an array.

#!/usr/bin/perl
open(I, “flavors.txt”);
@flavors = <I>;

With just two lines of code, you are ready to do some string munching. You can then run through the elements in the array with a loop similar to the following.

for($i=0; $i<@flavors.length; $i++) {
@flavors[i] =~ s/•//;
}

I would enjoy seeing some other ways to iterate through the array.


There is a fine line between a generic flexible UI and a crappy one:

Got the Chocolate Raspberry Stout in the fermenter. I can't wait to taste it.

Just poured out 10 Liters of overly-carbonated, accidentally-alcoholic, plastic-flavored, homemade root beer. Lessons learned: 3!

Follow me on Twitter