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
Album Information Database
on Jan 04, 2007 at 11:23
3 replies by bitsmart
These two scripts are designed to store and retrieve tracks with BPM (beats per minute). Intended for DJs and EJs to find tracks with similar BPMs for the purpose of making mixes. The code is commented in a very elementary way because these scripts were designed for teaching, myself and others. I wrote these in 2001. "add.pl" - Adds whole albums/singles/12" records to a simple text database. "bpm.pl" - Queries the simple text database and returns tracks with same BPM.
Simple link extraction tool
on Jan 02, 2007 at 16:41
6 replies by Scott7477
This code gets a web page that you specify at the command line and extracts all links from that page to a list in ASCII text file format. Comments and suggestions for improvement welcome! Updated per suggestions by ikegami and merlyn.
Excel2Text
on Dec 18, 2006 at 16:58
2 replies by stonecolddevin
Simple conversion script for Excel to a pipe ("|") delimited text file. Takes two arguments, the filename (can be relative) and the directory to save the text file to.
venn-list: produce union of histograms
on Dec 16, 2006 at 22:19
0 replies by graff
I needed this in order to assemble a word counts from 8 different sources of text, keeping track of which words came from which sources, and what the overall word frequencies were. So simple, yet so useful (the POD is longer than the code itself).
MD5 Cracker
on Nov 15, 2006 at 13:59
9 replies by Alien
Simple script if you have a md5 hash and want to crack it !
k5download
on Nov 13, 2006 at 10:19
0 replies by BerntB
Screen scrape kuro5hin.org.

Downloads all your posted comments to a directory. Generates a yaml file with definitions of all the comments, suitable for other scripts to use for parsing the data.

Can be the first of a number of scripts to e.g. find mod-bombers, etc.

Tab size 4.

lesmets.pl
on Nov 10, 2006 at 03:14
0 replies by revence27
lesmets.pl helps you put accents on characters when you, like me, can't get a keyboard that allows you to. The POD even has instructions on how to extend Nautilus, the GNOME file manager, with lesmets.pl. The name comes from French. Part of the French for "(if) you put them", and churned a bit. Get the POD documentation out with pod2html. Um, also I have noticed it doesn't treat all STDINs the same way. But it should run good (it does on my Ubuntu). If it doesn't, patch it -- the code is the clearest you'll find in these Code Catacombs.
Argdom.pm
on Nov 10, 2006 at 03:03
1 reply by revence27
Argdom.pm is good to help with managing arguments, in a very object-oriented way. Very extensible, because it uses high-level functions enough.
How to reconnect a dead DBD::Sybase Connection
on Nov 08, 2006 at 15:11
0 replies by jfroebe

It is important to know that this is just one method of reconnecting a dead connection.  Note that we are handling the errors manually for the individual query.  It wouldn't take much to create a db_exec subroutine so we just call the db_exec() subroutine and just worry about the reconnect in one place.

Notice that because of DBD::Sybase bug # 616, the error 151 will be printed to STDERR.

./test_sybase OpenClient message: LAYER = (1) ORIGIN = (1) SEVERITY = (1) NUMBER = ( +151) Message String: ct_cancel(): user api layer: external error: A connect +ion to the server must exist on the connection structure before this +routine can be called. ERROR: Connection to DBMS died syb_db_disconnect(): ct_close() failed MSG: Reconnected
SF_form_secure
on Oct 23, 2006 at 07:34
3 replies by SFLEX
Module Link, Current version is 4.0:
http://cpan.uwinnipeg.ca/dist/SF_form_secure
Edited 2! 10-29-2006
I changed this post because lots of ppl here must have A.D.D.

Link to Better documentation.
Re: SF_form_secure

More Examples.
SFLEX's scratchpad
I am now working on a 5.0 that will use parts of CGI::Util for the experation time and fix a bug in action 5 that returns the version if the matching code is blank.
Still trying to put together more documentation for this code so one can use it the right way.