I was just poking around in my home directory and came across something that I wanted to share as I'm sure you've stumbled across the same thing (or something similar).
In the course of writing a program I often find myself opening up another terminal window and hacking a quick foo.pl to test out a particular regex or function. Pretty soon I've got foo.pl, foo1.pl, foo2.pl, bar.pl, bar1.pl so I start using more descriptive names. Such gems as parse.pl, loop.pl, socket_stub.pl, bless_hash.pl start to appear. Pretty soon I've got
loads of these mini programs laying around.
I like to get into the habit of saving these snippets of code in my Perl 'bag-o-tricks' directory. I find myself going back into this directory more often than not to hack on existing snippets when coding a big program.
Do you find yourself doing the same kind of thing??
--
vek
--