Slash Boxes
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 ]

scot (6695)

  (email not shown publicly)

Perl hacker
"apprentice" sysadmin for ASP running Sparc-Solaris-Java-Oracle stack

Journal of scot (6695)

Tuesday January 02, 2007
01:27 PM

Simple automated file retriever

I whipped this together to grab web pages on a daily basis:

use strict;
use LWP::Simple;
use Time::localtime;
use File::Basename;

open (DATA, "urllist.txt") || die "File open failure!";
while (my $downloadurl = <DATA>){
        (my $name, my $path, my $suffix) = fileparse($downloadurl);
        my $finurl = $downloadurl;
                print $finurl."\n";
        my $lt = localtime();
        my $now_string = $lt->mon." ".$lt->mday;

        my $savefilename = $now_string.$name.$suffix;
                print $savefilename;
                print "\n";
        my $status = getstore($finurl,$savefilename);
                print $status."\n"

Friday December 22, 2006
06:37 PM

Java + Perl = Good stuff

This article is definitely worth a look. From the article: "The key to using JCR from Perl is Inline::Java. This library allows a Perl program to call Java methods with very little effort."
Thursday December 14, 2006
01:17 PM

Today's quote from St. Larry

Much as I hate to say it, the Computer Science view of language design has gotten too inbred in recent years. The Computer Scientists should pay more attention to the Linguists, who have a much better handle on how people prefer to communicate. --Larry Wall

01:09 PM

Pugs-Perl6 on Windows is impressive

I've been meaning to take a look at Perl 6 and Pugs and found Jonathon Worthington's site. Installing and running Perl6-Pugs on my Windows box from Jonathan's binary was astoundingly quick and easy. He's got a nice "Quick Start" tutorial as well. ++JW.
Wednesday December 13, 2006
02:49 PM

Review of "Perl in a Nutshell" 2nd edition

This journal entry is my working draft for eventually submitting a review as a story. My thesis is that this book is a solid addition for any Perl coder's bookshelf. Why?
-someone with experience in another language could pick this book and be productive fairly quickly
-plenty of useful code snippets
-section with usage summary for all of the standard modules
-sections on CGI gives you more than just what's in but form a good intro to CGI in general
Book details
Title: Perl in a Nutshell
by Stephen Spainhour, Ellen Siever, Nathan Patwardhan Second Edition: June 2002
Series: In a Nutshell
ISBN 10: 0-596-00241-6
ISBN 13: 9780596002411
Pages: 760
Current price at $39.95
Thursday November 30, 2006
11:15 AM

This site's daily Wall quote

This morning's quote from Larry got me chuckling: "Let's say the docs present a simplified view of reality... :-)". I created myself a little file to paste these quotes into for future enjoyment. Nice site feature!
Wednesday November 29, 2006
04:55 PM

Smart move by Sun Microsystems

The following popped up on the Sun Developer Network RSS feed a few days ago:

"For a limited time, Sun is offering a free DVD media kit which includes the Solaris 10 Operating System for both SPARC and x86 platforms as well as Sun Studio 11 software.
Take this opportunity to get familiar with the most advanced operating system on the planet and the tools which enable the highest optimizations and best runtime performance on the Solaris Operating System, bar-none.
Sun Studio software provides optimizing C, C++ and Fortan compilers, visual performance tools, and high performance libraries to enhance your Solaris development environment."

The cost to Sun to distribute DVD's will be minimal compared to the potential increase in market share for/usage of Solaris. There's no question that Solaris has always been a rock-solid *nix, and if Sun can get the open source community using Solaris the benefits to Sun are obvious.
02:47 PM

EnterpriseDB-PostGreSQL rebranded

I stumbled onto the website of EnterpriseDB which markets a product called EnterpriseDB which appears to be essentially a re-branded PostGreSQL. I will be very interested to see if CPAN modules targeted to PostGreSQL work out of the box with this database. Presumably, they would. My super search of turned up exactly zero references to EnterpriseDB, which was mildly surprising.

The biggest roadblock to more widespread adoption of PostGreSQL in my opinion has been its horrible name. Any branding or marketing consultant worth their salt would blanch in horror if a client suggested giving a product such a hard to spell, difficult to pronounce name. I don't know how any CIO could sell switching to PostGreSQL; you can just imagine the CEO saying "you want us to switch to Post-what? post-grrsklll? post grease-kill? Forget it."