Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: GLOB function

by AnomalousMonk (Archbishop)
on Jun 19, 2018 at 19:48 UTC ( [id://1216966]=note: print w/replies, xml ) Need Help??


in reply to Re^4: GLOB function
in thread GLOB function

Undefined subroutine &Module::CoreList::is_core called at test1.pl line 9.

Older versions of Module::CoreList do not have the  is_core() function. This suggests you are working with an older version of Perl, but I cannot see that you have ever stated what version you have; this would be useful information. You can work around this:

c:\@Work\Perl\monks>perl -wMstrict -le "print 'perl version: ', $]; ;; use Module::CoreList; print 'Module::CoreList version: ', $Module::CoreList::VERSION; ;; my @moduleList = qw(Data::Dumper File::stat File::Find); ;; foreach my $module (@moduleList) { printf qq{'$module' }; if (defined(my $fr = Module::CoreList->first_release($module))) { print qq{is a core module and was released: '$fr'}; } else { print qq{is not core module}; } } " perl version: 5.008009 Module::CoreList version: 2.24 'Data::Dumper' is a core module and was released: '5.005' 'File::stat' is a core module and was released: '5.004' 'File::Find' is a core module and was released: '5'
Note that  Module::CoreList->first_release($module) invokes  first_release() as a "class" method (the  -> operator).

I have also run your code but it is also showing some error.

"Some" error?!? "It doesn't work" is useless as an error report. What error? Please see I know what I mean. Why don't you?

Please resolve the issues in my full code that I have posted earlier.

I understand that you may be under pressure to do your job. However, PerlMonks is entirely a volunteer effort and the right person to help you may not be available at a given moment (or ever). Please help us to help you, e.g., by giving full information on "some error" that the code exhibits. Please see How (Not) To Ask A Question.


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1216966]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-26 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found