This seems to work, but without the 'length($_) > 2' I getmy @dirs = map { s/\Q$dir\E(\w+?)\.pm$/$1/, $1 } keys %$packlist; for (@dirs) { print "|$_|\n" if ( $_ and length($_) > 2 ); }
Is there a better way to get rid of the 1s!|1| |A_Module| |1| |An_Other_Module|
In reply to Re^4: warnings and grep problem
by jeanluca
in thread warnings and grep problem
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |