Is it possible to assign a sub routine a name from a variable?

sub $variable {something here}
If this can be done it would save me writing to a whole extra file every time I add something (which s what I'm doing at the moment). I already have the names in a tiny FFDB.

Any ideas?