Not to answer your question but to comment on your regular expression: $module =~ s/(.*)-.*/$1/; This is hard to read (and not very efficient). Try this instead:
$module =~ s/\-[^-]*$//;
This will remove everything from the last minus sign inclusively to the end of the line.
Rule of thumb: Try to make all your patterns start with a character and not a wildcard.
In reply to Re: find module name from the module archive
by shawnhcorey
in thread find module name from the module archive
by Lotus1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |