jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
So $dir contains a path specifying a specific sub_package.sub _find_modules { my $dir = shift ; my ($inst) = ExtUtils::Installed->new(); my $packlist = $inst->packlist("My_Package"); return grep { s/(.*?\Q$dir\E)(\w+)(\.pm)$/$2/ } %$packlist ; }
I get the feeling that this happens when $2 is not definedUse of uninitialized value in pattern match (m//) at /usr/lib/perl5/si +te_perl/5.8.7/My_Package.pm line 309. Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/si +te_perl/5.8.7/My_Package.pm line 309.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: warnings and grep problem
by Fletch (Bishop) on Jun 20, 2006 at 15:23 UTC | |
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 | |
|
Re: warnings and grep problem
by Moron (Curate) on Jun 20, 2006 at 16:14 UTC | |
|
Re: warnings and grep problem
by OfficeLinebacker (Chaplain) on Jun 20, 2006 at 14:54 UTC | |
by jeanluca (Deacon) on Jun 20, 2006 at 15:07 UTC | |
|
Re: warnings and grep problem
by Jasper (Chaplain) on Jun 20, 2006 at 16:33 UTC |