in reply to bioperl parsing blast

what is the maid_dir?
The $ prefix to maid_dir indicates that it is a Perl scalar variable. See Variable names. The name of the variable would lead me to suspect that it contains a directory name or path.

If that does not adequately answer your question, you should provide more context: show a small, self-contained code example with expected vs. actual output.