Thanks (++) for the example. I agree that bash might be a more fitting tool... if you know bash. I don't want to know how long it would have taken me to write the above before I got it right, since I don't. :) Probably would be able to do it faster in java, even...
I mean, with perl, who needs bash? :)
You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.