Mar 03 2010

WxPerl: Converting images for use as embedded XPM in your Perl code

Tag: Application Designtengo @ 5:51 am

Writing applications in Perl with WxPerl for GUI layout is nice. Decorating your apps with images is even nicer. Now when you go the extra mile to package your apps as compiled binaries, it can be regarded as messy to have the used images as external dependencies outside your code.
One solution around this is to […]


Nov 25 2009

Resolving a “print() on closed filehandle” error

Tag: Uncategorizedtengo @ 9:50 am

Today I banged my head for a few minutes against a strange error: I got a print() on closed filehandle from a simple code passage:
open(my $out,”>>”, “/some/file”) or die “File error: $!”;
print $out “sometext\n”.
close($out);
Can you spot the error?
After reading through two good help threads here and here, I came to the insight that something […]


Mar 19 2009

Crypt:SSLeay install problem under StrawberryPerl

Tag: setuptengo @ 11:50 am

A minute ago I had problems running the cpan install of Crypt::SSLeay under Windows + StrawberryPerl:
cpan -i Crypt::SSLeay
Before I tried the cpan module install I downloaded and installed openssl and Microsoft Visual C++ 2008 Redistributable Package. When cpan asked me where I installed openssl I pointed it to the right directory, but still - whenever […]


Mar 16 2009

How to feed query string values to a script on command line

Tag: Uncategorizedtengo @ 8:03 am

Often while debugging nasty “500 Internal Server Errors” and when everything seems to work on command line but the webserver refuses to properly serve your script’s output (btw: check if you set permissions right, twice!) you might want to feed the query_string to a script on command line. Running a script in default mode, without […]


Mar 12 2009

CPAN and Wx on StrawberryPerl, problems resolved

Tag: setuptengo @ 4:43 pm

Shortly after learning about StrawberryPerl (which I documented in my post about it as replacement for ActivePerl) I was tempted to actually try it. Well, tempted…, more like forced to try it. A script I am developing needed HTTP::Proxy and I was just unable to fetch it/get it working in the ActivePerl environment - even […]


Mar 03 2009

Simple mbox eMail reader in Perl

Tag: Application Designtengo @ 7:56 am

Although the email protocol (RFC2822) is one of the oldest of all the “Internet protocols”, getting perl to handle it is actually not that simple at first. Heading over to cpan it took me some minutes and a prototype script to get it do what I thought would be a one-liner.
My scenario was that I […]


Feb 27 2009

Wx::Perl lessons learned

Tag: Uncategorizedtengo @ 1:04 pm

WxPerl (Wx::App on cpan) is a great tool to design visually rich graphical user interfaces for your scripts. But the downside is that the learning curve is quite steep. There were many incident when I was banging my head against the wall for hours until I finally got what I intended. This post is meant […]


Feb 27 2009

StrawberryPerl, the ActivePerl alternative

Tag: setuptengo @ 11:03 am

Windows and Perl - that’s quite a story. For a number of years now I’ve been using ActivePerl, not without encountering some problems along the way. One of the most annoying is that ActivePerl relies on ppm packages to install modules, not the original CPAN modules. So it takes some time until ppm versions of […]


Jan 25 2009

Search engine crawler design references

Tag: Application Designtengo @ 10:05 am

When starting the coding/design of a new search engine crawler (a challenging task, read What I’ve learned from writing a large scale search engine), some input from people who’ve been there and done that might be quite helpful. Of course, there is the original Google paper and some other stuff around that I like to […]


Jul 20 2008

Compile a perl script that uses Wx with pp and PAR

Tag: Uncategorizedtengo @ 9:30 am

Compiling scripts with pp, PAR’s helper script, to executable binaries (.exe files on Win32) should be a pretty straightforward process. Anyway, if you are developing GUI applications, probably with Wx, you will surely run into some problems.
Upon execution, the generated execs will complain about missing libraries, DLLs or similar. This is because pp does a […]


Next Page »