Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

perigrin (3495)

perigrin
  chrisNO@SPAMprather.org
http://chris.prather.org/
AOL IM: marceusx (Add Buddy, Send Message)

After Middle School Chris bounced through various high schools around the state of Florida for a bit. He ended up getting a BA (in English) from the University of Central Florida at about the time others his age were getting their MAs. His (now) wife, their child, and he went to Europe for a bit (there was a programming job in Scotland) and came back unemployed where upon he got offered a job in St. Paul. He moved on from that job after a few years to one where he was paid to do the things he previously did as a hobby. That sounds much more exciting than it really was. Really his life is based on two kids, two cats, and a bunny.

Journal of perigrin (3495)

Tuesday March 11, 2008
06:53 PM

(Minimal Perl)++

[ #35888 ]

Several months ago now I made work buy me a copy of Minimal Perl because it looked like it would be useful for formalizing the writing of small one off scripts.

It is.

At work we have some database imports that we do from Excel Spreadsheets supplied by the client. This process is mostly a manual process (for now), and it requires converting to CSV, making sure everything is Latin-1 and creating some SQL and YAML for our application. When I started taking over this process I took the opportunity to use the tools I learned. I now have three or four 40 line scripts that start with such gems as

#!/usr/bin/env perl -nasF/\t|,/

and have 30- lines of END block. I cannot reccoment Minimal Perl enough if like me you started with Perl as an Application Language (mod_perl) and want to pick up a good style for doing the quick-and-dirty hacks in a not-so-quick-and-dirty way.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.