Monday, March 2, 2015

Book Review: Perl and XML

Recently, I pulled out my (mostly) unread copy of Perl and XML and rather than using it as a reference, began reading the entire thing starting with the Preface.  It was a very enjoyable read.  The fact that I enjoyed reading it so much was a surprise to me - who would've thought it possible?  I had worked with XML and RSS and LDIFs for a dozen years.  In the past, I basically just did a quick google and then thought "Yeah, there's the module I need" and installed it an ran with it.

This book explained the differences in the many modules and explained when and where to use them.  After nearly eight years I had an "Ah-hah!  That's why that program sometimes didn't always catch everything I was looking for!"  (I was using a generic XML parsing module when I should've been using XML::DOM

My only criticism (a minor one) is I would have liked to have seen more and varied examples in the RSS chapter.  But, it was an XML book, not a RSS book and the goal was not to show you the difference between Atom and iTunes in RSS feeds, etc.

If you use XML and Perl - you will want to READ this book.  Note:  I said READ this book.  Don't just buy it as a reference and put it on your shelf like I did (at first).  In fact, everyone reading this should buy it!  (It's only one penny on the used market at Why not?!)

Friday, June 14, 2013

YAPC::NA 2013 Austin, TX

Another great YAPC has come and gone.  What a great bunch of folks!  Although there were some great sessions, so far, my favorite was Mark Keating's keynote - specifically his advice to "buy this book".  I really didn't think I needed another Perl book - especially one that says "beginning" in the title.  But I looked at it anyway.  This is without a doubt the most complete "beginning" Perl book I've ever seen.  He covered things like the Perl community - which you don't see treated so extensively.  There was coverage of POD (which I love).  Of course it had whole chapter on OOP and one on creating modules - not typically what you'd call "beginning" Perl... And then I saw a chapter on Moose and had to buy it.  It looks to be fun summer reading for me.

Monday, December 10, 2012


I've recently starting trying to use POD for documenting more.  I love RCS so combining the two not only made sense but I found they compliment each other nicely.  I like that you can generate a man page or HTML from POD and you can use RCS variables to fill out part of the POD.  Here's my new file slurping template incorporating RCS and POD.

#!/usr/local/bin/perl -w


=head1 NAME 


=head1 VERSION







$in = shift;
open(IN,"<$in") or die "Cannot open $in: $!\n";
 # meow
 print $_;

Wednesday, March 7, 2012

Inspired by the new iPad ...

Okay, I can't take credit for it.  The Onion had this great story about the amazing power of the iPad.  That made me think - I wonder if you can could now use Perl on the new iPad from Apple.  I'm still not sure.  But, you can read several of your favorite books on the new Apple iPad.  I couldn't really find anyone scripting Perl on the new Apple iPad so not much more to say except to quote The Onion "new iPad, new iPad, new iPad, new iPad, new iPad, new iPad, new iPad, new iPad, new iPad, new iPad." 

Wednesday, December 21, 2011

Lost in Windowsland

For the first time in 15 years, (maybe ever*), I've been working on Windows servers.  I've always found Windows to be uncomfortable.  Lousy shell, few if any tools -and you can't script a GUI. But lately, I've been intrigued by Powershell and have been using it a bit for things.  With the addition of gVim, I am finding Windows to be more and more comfortable.  (gVim is a lifesaver!) 

Another thing I use is Strawberry Perl!  Actually, I use it to write Powershell scripts for large lists of users [add mailbox, delete mailbox, add/del mailContact, etc.]  But I am seeing some pretty cool Powershell tools (import-csv is cool) and someday, I'll just process files in Powershell and won't need Perl (on Windows).  Yeah right!!  And I'll switch to Notepad too.  Ha!

So, I'm pretty much weaned off of Cygwin - yeah, practically a Windows native now except for gVim and Perl.  I guess that okay, eh?

* I went directly from being the Netware guy to being the UNIX guy and skipped the Windows NT, etc.

Wednesday, June 29, 2011

Excellent YAPC::NA (for me)

Wow!  A lot has changed since last year.  It seems like this year was an emphasis on Perl 5 (which is fine by me).  It looks like developement on Perl 5 has really picked up.  There is a 6th edition of Learning Perl out which emphasizes Perl 5.14!  (I'm waiting on the Kindle Edition)  I found out that most people are using Perl 5.12.  My old Solaris systems have 5.8 and I'm not even using any of the cool stuff from 5.10 yet.  I'm excited to start after seeing so many examples of things I've been missing out on.  PerlBrew should help with this and I need to start using cpanm.

Notes and reminders: Look into Test::More, Mouse, cpanm, PerlBrew, ZeroMQ, Plack, Dancer, Starman, Mongrel2, Catalyst and, as usual, make a point to spend more time on #perl and PerlMonks.

The interesting thing was Larry Wall's handling of the Perl 6 and the pumpkings.  I have a feeling this year's State of the Onion will be jaw dropping.

Really good conference - even better than last year (for me).  I'm loving the Perl 5 emphasis!

Wednesday, June 15, 2011

Looking forward to YAPC::NA

I am really looking forward to YAPC::NA.  Looks like it'll be another good one.  I was especially interested in the Plack and Dancer talks (which are not yet confirmed according to the site).  If you see Tatsuhiko Miyagawa or Mark Allen - tell them I'm counting on them!