Douglas Milewski (dacuteturtle) wrote,
Douglas Milewski

Coding Fun

I passed a hurdle in my new perl script last night. I worked out how to identify the monster types of all the monsters. This was difficult, as the monster type has no easy "tag" to identify it, and shifts location in the table. However, if I search for "Hit Dice:", then I have a relative position.

I tested the script last night. Pearl takes a few hundred pages of text and puts them into a single variable. Do lots of operations. Split the varible on the newline and form an array. Do operations on the array. Dump everything do disk.

Phew. I adore perl and regular expressions.

I've also been playing with JEdit. This is a java based scriptable editor. Yay fun. Without knowing what I was doing, it took me 45 minutes to record a macro, learn how to edit a macro, and come out with a macro that converts HTML tables to Wiki format. Fun.

  • Moving to DreamWidth

    For those heading to DreamWidth, I've created an account. I'm dmilewski.

  • Prostitution as a Means of Family Planning

    Does prostitution constitute a method of family planning? If a man doesn't want more children, then instead of having sex with his wife, he has sex…

  • The Swordbearer (1982)

    The Swordbearer (1982) by Glen Cook is the dark fantasy version of a YA novel. If you know Glen's writing style, you'll recognize the disaster about…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded