Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Code Catacombs

( #1747=superdoc: print w/replies, xml ) Need Help??

This section is now closed for posting code. Please use Cool Uses For Perl instead.

Code Categories
Audio Related ProgramsFTP stuffNT Admin
CGI ProgrammingFun StuffWin32 Stuff
Chatterbox ClientsGUI ProgrammingMiscellaneous
CryptographyHTML UtilityText Processing
Database ProgrammingUtility ScriptsNetworking Code
E-Mail ProgramsWeb StuffPerlMonks Related Scripts

New Code
on May 25, 2009 at 17:14
0 replies by mamawe
I use this script every day to create directories, have them organized, change between them and do not think to much about it.

I use it in a shell alias like this

alias cdheute='cd `mkdir_heute`'

Actually it used to be a module and the script but for simplicity and posting it here I have slurped the module into the script.

Random maze generator
on May 19, 2009 at 07:05
2 replies by ambrus

This is the rewrite of an old random maze generator I wrote in C. It uses the same method for generating the maze, but the interface is different: the old one let you traverse the maze while seeing only your immediate environment, whereas this one only prints the maze as an ascii art (view in a fixed font).

The @ marks the starting position and > is the goal.

on May 17, 2009 at 15:00
1 reply by sflitman
A simple text-based column extractor for use in Unix pipelines
on May 17, 2009 at 13:15
0 replies by sflitman
Run a shell command in every subdirectory under the current working directory (cwd), and including the cwd as well
Graphing Git commits with git + sh + Perl + Gnuplot
on May 13, 2009 at 11:41
2 replies by Bucciarati
graph git commits over the week
Construct command portable way
on May 06, 2009 at 08:16
1 reply by avinash_d
Automatic ChangeLog Generation
on Apr 17, 2009 at 14:15
0 replies by DStaal

I hate maintaining a separate ChangeLog on my modules. I'd rather keep it in the module's POD. But that's not the Kwalitee way to do it, and I'd rather follow standard locations.

Or better yet, get Perl to let me write where I like, and recreate the standard file as desired...

This goes in a Build.PL script: Use $class->new instead of Module::Build->new to use.

Sherlock v0.1
on Apr 06, 2009 at 12:34
1 reply by bpoag
Sherlock will determine if a given host is known or unknown to a NetBackup master server, regardless of platform type. It's presented here in its unmodified form (we differentiate primary and backup network interfaces by the inclusion of a b_ prefix on the hostname) for the sake of demonstration. Sherlock is known to smoke a pipe made of ivory, and is often condescending while addressing others, including his faithful sidekick, Watson. This predisposes him to developing mouth cancer and a bad reputation. There is a possibility that Watson may know judo, and as such, may use the momentum of an attacker's body to his advantage in executing one or more stunning throw techniques. Executing this code will cause a giant pair of scissors to appear in the skies at above rural England, disappearing after a few moments. No need to be alarmed.
Corrupt MS Word 2007 Text Extractor
on Apr 03, 2009 at 12:58
0 replies by socrtwo
DOCX files are really zipped collections of XML and other binary files. The text in the docx files is contained in the word/document.xml file within the collections. Some basic formatting information is also contained in the word/_rels/document.xml.rels file. The code presented here uses a modification of the docx2txt script to extract text from corrupt Word 2007 files where Word 2007 and the original doc2txt fails to. It uses CakeCMD to unzip instead of Info-Zip found in the original docx2txt script, because CakeCMD will unzip corrupt xml files where Info-Zip fails or does not work as well. This script also uses Perl/Tk to make a GUI, with the aim of a wider audience. The Perl/Tk code was inspired by the easy great beginner tutorials by Binny V A here: CakeCMD is by Leung Yat Chun Joseph and can be found here: It uses the open source ICSharpCode.SharpZipLib.dll library. Cake CMD also requires the Microsoft dotNet 2.0 framework here: Docx2txt is by Sandeep Kumar and can be found starting here: My real name is Paul Pruitt, my E-mail is My website containing a couple hundred links of data recovery resources is here: I built an executable for this package which can be found there too on the index page.
Yet Another Cryptogram Script
on Mar 20, 2009 at 05:49
1 reply by missingthepoint
Yes, another one.
Log In?

What's my password?
Create A New User
[choroba]: I don't see it when XP doesn't change either
[marinersk]: That has always been its behavior, but I'm a visual/spacial- awareness guy. When the node disappears, it messes with my head, even though it is on the right margin.
[marinersk]: I was hoping there was a way to turn it on and make it stay on.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2017-05-29 13:45 GMT
Find Nodes?
    Voting Booth?