Strange Loops

No Matter Where You Go, There You Are

Simple but Useful Script

| Comments

Over the course of my career, I've written a variety of scripts to do the same thing over and over again. This particular script here takes a list of files and combines the files together for use in a CLASSPATH environment variable. It can be used for other things but I use it a lot for constructing CLASSPATH.

bash$ export CLASSPATH=`join.pl ~/.swank-clojure/*`

bash$ echo $CLASSPATH

/Users/dc/.swank-clojure/clojure-1.1.0-master-20091202.150145-1.jar:/Users/dc/.swank-clojure/clojure-contrib-1.1.0-master-20091212.205045-1.jar:/Users/dc/.swank-clojure/swank-clojure-1.1.0.jar

This script gave me to the chance to try out my perl 5.10.1 distribution and a new perl 5.10 features e.g. say and Modern::Perl