No, your problem is not different. warnings tells you exactly what I said in 776045 and what Corion implied in 776043. This error will prevent your code from executing properly. strict would have kept you from creating the bug in the first place.

First off, when you post code here, you should make sure that what you post is complete and executable to the extent possible - see How (Not) To Ask A Question. In this case, you omitted including (I assume) use Getopt::Long at the top of your file and have not included your usage_help() subroutine (which you misspell on line 13, caught by strictures). Ignoring that, running with warnings alone yields:

Name "main::Diagnostics" used only once: possible typo at fluff.pl lin +e 7. Name "main::All" used only once: possible typo at fluff.pl line 9. Name "main::prefix" used only once: possible typo at fluff.pl line 20. Name "main::result" used only once: possible typo at fluff.pl line 4.

Note the message about line 20, where you create your typeglob with an uninitialized variable. This is (part-of) your bug. This has already been pointed out multiple times.


In reply to Re^3: calling problem in script by kennethk
in thread calling problem in script by namishtiwari

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.