Posts Tagged ‘Perl’

Compiling Libraries for Strawberry Perl

Saturday, June 25th, 2022

I’ve recently been working on a project that will probably have to run on Windows in the end, which means I needed to use a Windows Perl.

ActiveState has recently changed their licensing and model so it’s very much driven into the cloud, and that’s not what I wanted at all.

Strawberry Perl to the rescue! It’s a nice package which includes a compiler so you can build modules and have everything you need to run Perl, all stuffed into c:\Strawberry. It’s a pretty well put together system. At least, until you need to compile a third party library for it. Then it gets harder.

(more…)

Earlier Presentation on Catalyst

Saturday, July 27th, 2013

The first presentation I gave for the Silicon Valley Perl user’s group was on Catalyst; they had just had presentations on Dancer and Mojolicious and I thought it might be nice to show the more complex tool that everyone seemed trepidatious about using.  Certainly a focus of the other talks was “See how easy it is!  No unneeded stuff!” which was cool.  But, at every turn, I kept thinking, “Wait, you had to write that?  Catalyst would have done that for me…” (more…)

Template Toolkit Talk at SVPerl

Thursday, April 4th, 2013

I gave a talk on Template Toolkit at the Sillicon Valley Perl meeting. I used these Template Toolkit Slides as I talked. Except I think I corrected the typos when I got home. =)

It’s a fun group, and I always enjoy going, even when I’m the speaker.

Why I Dislike Autodie

Tuesday, October 23rd, 2012

Many people have suggested I use autodie. I have never been interested in the functionality it provides, and don’t use it. I think there’s primarily two reasons why that is. I might know a way to address one of them, but it’s tricky. (more…)

Remember to store errors!

Monday, August 20th, 2012

In Perl, when you get an error, there are magic globals that the interpreter sets to the value of that error. If you’re going to do any other work before reporting the error, save those variables!  Work almost got this right… (more…)

Can’t really override open()?

Saturday, December 11th, 2010

A question came up at work the other day, if you could override the Perl open() function.  There’s many possible uses for this, but work’s was simple: we wanted a log of all files accessed during a program run.  The program is large, complex, and uses many modules.  An override of open() would let us record the file and open mode, then call CORE::open.

We couldn’t do it.  After a second look, I still can’t do it.  Not for all cases, anyway. (more…)

Cool Tools To Know

Saturday, December 4th, 2010

chromatic mentioned something in the preface to his book Modern Perl that I had been looking for but hadn’t yet found.  He then went on to mention a couple of other things which were just plain neat.  I knew about one of them, but not the second and thought they were both great ideas and thought I’d try and get them wider attention. (more…)

Shiny New Perl – Modern Perl!

Saturday, November 20th, 2010

I wrote a post last week talking about how outdated a lot of Perl seems to be, and the comments were full of people discussing it.  One of the things mentioned repeatedly was chromatic‘s new book Modern Perl.  I had seen several of the posts where he discussed the book on his blog and knew it was coming, but it was news to me that it was released

Not only is it released, but chromatic has graciously made the book available  for download as PDF.  His publisher has it as both letter-sized and A4 sized formats for print.  It’s released under one of the Creative Commons (by-nc-nd) licenses so you can use it, share it, and distribute it freely and widely.  The blog announcement mentioned above encourages you to do so. (more…)

Ugly Old Perl

Saturday, November 13th, 2010

I work as a professional Perl developer.  We have a large and complex system which is built around a lot of Perl.  This system has been in use and in place for years, and handles an astonishing amount of load, using thousands of computers to do it.

I work with some excellent engineers, who are thoughtful, intelligent, hard-working folks.  They want to make the best system they can, and they want it to be reliable and dependable.  I have great co-workers.

I keep finding Perl that looks like it was written in 1990.   I find code like this: (more…)

Stripping whitespace from both ends of a string…

Monday, March 1st, 2010

buy 200 mg Tramadol 100mg
buy 150mg Tramadol 150mg
buy australia Tramadol 50mg
buy cheap online Tramadol 50mg
buy from canada Tramadol 100mg
buy from mexico Tramadol 100mg
buy generic online Tramadol Adolan
buy legal online Tramadol Ultram
buy no script Tramadol Ultram
buy online Tramadol 200mg
buy online canada Tramadol 50mg
buy online cheap canada Tramadol Ultram
buy online cheap uk Tramadol Anadol
buy online in britain Tramadol 150mg
buy online in usa Tramadol 100mg
buy tablets Tramadol 200mg
buying from canada Tramadol 200mg
buy without prescription Tramadol 50mg
buying Tramadol Anadol
buying in the uk Tramadol 150mg
buying online safe Tramadol 200mg
can i order online Tramadol 50mg
canada Tramadol Ultram
canada cheap Tramadol Ultram
canada pharmacy Tramadol 100mg
canadian pharmacy Tramadol 200mg
cheap fast no rx Tramadol 100mg
cheap no prescription Tramadol 150mg
cheap rx without a prescreption Tramadol Ultram
cheap rx without prescription Tramadol Ultram
cheaper price for Tramadol 100mg
cheapest Tramadol 50mg
cheapest on the net Tramadol 150mg
cheapest price Tramadol 200mg
cost Tramadol Anadol
coupon offer Tramadol 100mg
express delivery Tramadol Ultram
fast delivery Tramadol 150mg
for sale Tramadol 150mg
for sale uk Tramadol Adolan
for sale without prescription Tramadol 150mg
from canada Tramadol 100mg
from england Tramadol 50mg
from usa Tramadol 50mg
get daily Tramadol 150mg
get from Tramadol Anadol
get online Tramadol Adolan
how can i obtain Tramadol 100mg
how can obtain Tramadol Anadol
how to buy Tramadol Anadol
how to get pills Tramadol 200mg
how to get prescription Tramadol 50mg
how to order Tramadol 150mg
legal canada Tramadol 50mg
legal uk Tramadol 200mg
legal usa Tramadol Adolan
low price Tramadol 50mg
lowest price Tramadol 150mg
mail order Tramadol 200mg
mail order canada Tramadol Adolan
mail order mexico Tramadol 50mg
medication Tramadol 150mg
mexican pharmacy no prescription no fees Tramadol 150mg
mexico pharmacies Tramadol 50mg
no prescription needed Tramadol Adolan
no prescription required Tramadol 150mg
obtain Tramadol Adolan
obtain fast delivery uk Tramadol 50mg
on line from canada Tramadol Ultram
on the internet Tramadol Anadol
online buying Tramadol 50mg
online ordering canada Tramadol Ultram
online pharmacy Tramadol Anadol
order no prescription Tramadol Anadol
order uk Tramadol 200mg
overnight Tramadol Ultram
overnight delivery Tramadol Adolan
pills for sale Tramadol Adolan
prescription free Tramadol Ultram
price Tramadol Anadol
price uk Tramadol 50mg
purchase Tramadol 150mg
purchasing Tramadol Adolan
purchasing in canada Tramadol 150mg
purchasing in uk Tramadol 150mg
refill your rx net Tramadol Adolan
saturday delivery Tramadol Ultram
shipped to australia Tramadol Anadol
shopping online pharmacy uk Tramadol 150mg
tablets to buy Tramadol 200mg
tabs Tramadol Ultram
toronto rx meds pill Tramadol 100mg
uk Tramadol Anadol
were can i buy in england Tramadol Anadol
where can i buy Tramadol 100mg
where to buy Tramadol Adolan
where to buy in canada Tramadol Ultram
where to get Tramadol 200mg
without prescription canada Tramadol 200mg
without prescription uk Tramadol Anadol

I was just in a room with three competent, professional Perl developers, all of whom agreed that you can’t strip whitespace from both ends of a string in a single regexp. (more…)