in reply to Re^3: warnings and grep problem
in thread warnings and grep problem

Ok, but what about this
my @dirs = map { s/\Q$dir\E(\w+?)\.pm$/$1/, $1 } keys %$packlist; for (@dirs) { print "|$_|\n" if ( $_ and length($_) > 2 ); }
This seems to work, but without the 'length($_) > 2' I get
|1| |A_Module| |1| |An_Other_Module|
Is there a better way to get rid of the 1s!