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 ]

koschei (147)

koschei
  useperl@dellah.org
http://eh.org/~koschei/

Um. Me. Iain Truskett. Can be found as either Spoon or Koschei around the place, and as Braxiatel in rare circumstances. Um. Cool. Ta.

My perl svn repository [dellah.org] if you want bits of code by me. Also see dellah.org [dellah.org] for most of them in action.

My friends [perl.org], foes [perl.org], fans [perl.org], and freaks [perl.org]. And you can see what my friends are journalling [perl.org].

And everybody's journals [perl.org] (in order of updating).

Journal of koschei (147)

Wednesday December 03, 2003
01:20 AM

A Personal Reaction

Reading, Writing, 'Rithmetic by Michael Swaine:

[...] In that same September issue [of Summer Reading], Gregory Wilson reviewed the book Code Reading. I had a personal reaction to the book [...].

That sounds painful. A doctor should be consulted immediately!

Monday December 01, 2003
07:53 AM

Five shiny Perl modules

I've uploaded 5 dists to PAUSE for CPAN in the past few hours. (Note that the links below won't work accurately for a little while yet --- have to wait for search.cpan.org to sync.)

  1. DateTime-Format-IBeat 0.16: nothing interestingly new. Just some better test coverage.
  2. DateTime-Format-Builder 0.78: multigroup Dispatch fix.
  3. WWW-Yahoo-Groups 1.91: removed decoding and fixed some bugs reported by tbone, and mentions Spidering Hacks (thanks Andy!).
  4. PHP-Strings 0.24: a worrying joke.
  5. WWW-Mechanize-Cached 1.23: because Mech now supports it and URI now supports it, and I didn't want it just lying around doing nothing.

Share and enjoy!

(In case you are wondering, my initial version numbers for things are indeed semi-random, typically being based on the day of the month when I started writing the module; additionally, I skip versions ending in noughts due to a bug in my build process that I've been too [wrong] lazy to fix, thus the previous Yahoo module was 1.89, not 1.90)

Monday November 24, 2003
04:24 AM

full text perl faq searching

I wanted to find a particular FAQ entry, so I thought: why not have full text searching?

So I added it. And optional case sensitivity.

It's very nice, even if I do say so myself.

Saturday November 22, 2003
08:43 AM

faq.perl.org search

Actually, the subject is a lie.

Google, for some reason, isn't indexing faq.perl.org.

On IRC, I tend to point people to the FAQ a fair bit. The problem is that `perldoc -q flub` will given them the answer that's in their version of the FAQ.

I'm used to a newer version of the FAQ.

So I could point them to faq.perl.org. But that's a pain as it has no search.

So: I wrote my own. Code is there too, if anyone is that interested =)

As with so many of my little projects, there is a grand plan: I'd like the FAQ to be easier for people to contribute to. So, later, editing.

Also need to write something to quickly generate appropriate URLs while in irc. Or something.

Saturday October 11, 2003
11:09 AM

Dune Emperor, Perl and Spidering Hacks

I've had a fun few hours. I was getting bored playing the default Dune Emperor maps so decided to get some more from dune2k.com. However, they're big files and I'm on a slow connection. So I wrote some Perl to sort out their nonsensical URLs, parse their web pages and download the map files. I even use a progress bar in LWP (courtesy Spidering Hacks).

While waiting for an initial few maps to download I decided to write up my programs, explaining what they do and, well, really I'm just showing them off because I like them.

So, first we have the program to parse the pages and work out what to download, and then we have the program to do the download with the cool progress bar.

Please read and enjoy =) I'm off to enjoy some Harkonnen death.

Wednesday October 08, 2003
11:10 PM

Solving CPAN ftp proxy problems in perl

With perl 5.8 having libnet as standard and the generally appalling state of firewalls and default configurations, it can be irritating when CPAN spends 5 minutes trying Net::FTP when if it had tried, say, wget it would have been over quickly.

Quick solution:

'dontload_hash' => { 'Net::FTP' => 1 },

in your CPAN/Config.pm (or wherever you keep your config)

The docs don't elaborate on it much so I guess I'll have to submit a patch to the firewall section.

  dontload_hash      anonymous hash: modules in the keys will not be
                     loaded by the CPAN::has_inst() routine

Monday September 15, 2003
05:57 AM

Perl References - 5 second tutorial, courtesy coraline

foreach @{$arrayref}
keys %{$hashref}
length ${$scalarref}
note the pattern, so you don't have trouble with hashrefs later

(noted here for my future reference when I write about refs)

Wednesday September 10, 2003
08:56 AM

Regular Expression Pocket Reference (perl, ruby and vim)

I'm disappointed in the vi/vim part of "Regular Expression Pocket Reference" (new from ORA). It's not very thorough. It does, at least, mention vim and list some of its more common bits of syntax, but it doesn't go far enough. It doesn't provide a full summary of the vim's regex options. Which is a shame because, out of the flavours covered by the book, it's the most different. The others are all more or less the same with minor quirks.

A vim reference should at least try to cover it all. That said, vim has excellent builtin help ( :help regex ), I was just hoping for a more complete reference on paper, in a nice little book.

On the other hand, the perl section didn't seem too bad (note that I'm the guy who contributed perlreref to 5.8.1). Points of interest: gives a nice reference to the Unicode properties (I think Perl's docs is missing a nice comprehensive list, expecting you to look elsewhere); it notes the different return values of the operators/functions in scalar vs list contexts; isn't aware of the changes in Perl to make $`, $&, and $' faster (though the outer two are only faster in a blead compiled with copy-on-write (as far as I can see); the composite unicode properties to character class equivalent mapping is somewhat more enthusiastic; the references don't mention a lot of the perl docs that I do; doesn't mention the \p{IsSpacePerl}. Other than that, quite good =)

Also, it doesn't cover Ruby regex, which have some amusing quirks of their own (in particular, the meanings applied to /s and /m, and the way Perl's /m is on by default, thus meaning ^ and $ are often the wrong thing to use).

Meanwhile, I've been collecting links and such for various regex related bits and have put a wiki page up on the topic in my kwiki.

Monday September 08, 2003
11:30 PM

XML vs TeX

Elliotte Rusty Harold:

And certainly XML is easier to use than TeX.

Huh?

Sunday August 10, 2003
09:46 AM

My perl svn repository

My Perl svn repository is available via

http://dellah.org/svn/perl/

As it's svn, it's also a happily valid web page. I'm currently in the process of transferring my CVS repository to svn, with all the perl bits ending up at that URL. Feel free to check stuff out (it's not just my modules), and Patches are Welcome. There isn't free commit access though.