Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Fedora isn't my distribution, but they distribute this code, so I have to make it run on Fedora without crashing on start due to missing module error, obviously I agree that this is a bug in Redhat/Fedora, but they believe it's a feature to remove core modules from Perl's core modules and then make you install them separately, so that's outside of the scope I can fix.

While their packager can fix and I think does add as a dependency these missing core modules, many users do not use the packaged version since they want a current version, which leads to this issue. Again, the problem here which I'm looking for a solution is the Perl warning, not making Fedora do what I want them to do, which I can't do.

I tried removing the explicit 'find' from File::Find->import, made no difference, though it was a good suggestion.

This error appears without running this logic, it's a perl compile time warning.

I'm guessing when "use File::Find;" is used to load the module, Perl then knows not to worry about specific instances of File::Find in the following code, but when require File::Find is used later one inside of a sub, it doesn't, but that seems weird because Perl knows not to complain about $File::Find::name for example.

As noted, this is very confusing and is I think why I didn't use $File::Find::prune in the past for this feature, I could not figure out how to make Perl not complain on start about this without "use File::Find;" which can't be done.


In reply to Re^2: Why $FIle::Find::prune = 1 returns used only once error by h2
in thread Why $FIle::Find::prune = 1 returns used only once error by h2

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-29 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found