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:  <%-{-{-{-<


In reply to Re^5: GLOB function by AnomalousMonk
in thread GLOB function by rahu_6697

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.