in reply to warnings and grep problem
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: warnings and grep problem
by jeanluca (Deacon) on Jun 20, 2006 at 15:49 UTC | |
by Fletch (Bishop) on Jun 20, 2006 at 16:10 UTC | |
by jeanluca (Deacon) on Jun 20, 2006 at 16:36 UTC | |
by eric256 (Parson) on Jun 20, 2006 at 16:11 UTC |