Menu
Ken-McConnell.com
  • Home
  • Blog
  • Novels
    • B E T W E O S
    • Joshua Jones Mysteries
      • Null Pointer (Mystery) Book 1
      • Kill Dash Nine (Mystery) Book 2
    • The Star Saga
    • Starship Series
      • Corvette: First Command
      • Corvette: Seer of the Black Star
      • Corvette: Pirate’s Lair
      • Destroyer: Declo Demons
      • Destroyer: The Mutineers
      • Destroyer: Letting Go
      • Explorer: New Horizons
      • Explorer: Searchers
      • Explorer: Destiny
    • Starforgers Series
      • Tales From Ocherva and Other Stories
      • STARFORGERS, Starforgers Series, Book 1
      • Devon’s Blade, Book 2
        • Hank Lives (Short Story)
      • The Rising, Book 3
      • The Blood Empress, Book 4
      • COUNTERATTACK, Starforgers Series Book 5
    • Starstrikers Series
      • Starstrikers, Book 1
      • K’nat Trap, Book 2
    • Starveyors Series
      • Starveyors, Book 1
      • Tyrmia, Book 2
  • Model Builds
  • Coming Soon
  • Newsletter
  • About
  • Contact
Ken-McConnell.com

Thinking of an Animal, Part 2

Posted on November 29, 2005 by KenMcConnell

I’ve been continuing my studies of Perl and have been adding to the script, ThinkingOfAnimals.pl. I’ve added some modules that extrapolate out some functionality. IO_LIB.pm contains methods for writing to and reading from a file, and LOGIT.pm which makes a Log file and then appends it using IO_LIB of course.

So now you need two modules and the main file to run the script, plus you wind up with a nice file called Log that gets created and then recreated every time you play the game. I figured out how to add command line options in Perl and now the game can be run in Debug Mode by adding – -debug to it when called from the command line: perl ThinkingOfAnimals.pl – -debug

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

©2026 Ken-McConnell.com | Powered by Superb Themes