Something doesn't quite . . . match up. Calling grep on %$packlist rather than (say) keys %$packlist seems odd. Not to mention you seem to be trying to use grep in one step where you probably want a map of grep'd results. Modifying things inside of a grep is . . . unusual; grep is for selecting items from a list which satisfy some predicate, map is for constructing a new list by applying some transformation to the elements of an existing list.
Those things aside, I'd use FIle::Basename to split the paths apart instead of a regex.
In reply to Re: warnings and grep problem
by Fletch
in thread warnings and grep problem
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |