.al files are usually missing when a perl module isn't correctly installed

Actually, in my experience, it is much, much more likely that the reason that a *.al file is "missing" is because the module in question doesn't actually have (in this case) a setup_drive(r) method.

Searching for when DBI may have acquired a /^setup_drive/ method, I only found:

Changes in DBI 1.35, 7th March 2003
 * Added note to install_method docs about setup_driver() method.

Looking at DBI.pm, I see that it does not use AutoLoader or such and so there is absolutely no point in having an AUTOLOAD that looks for *.al files when a method in DBI is not found.

A big part of the problem is this line:

@ISA = qw(Exporter DynaLoader);

It was a pretty stupid idea to use inheritance in the design of Exporter and DynaLoader. One or both of those likely similarly use inheritance to make use of AutoLoader. Inheritance in transitive so this all makes DBI also use AutoLoader even though it had no intention of doing so.

It is a bit of a mystery why DBI's inherited AUTOLOAD can be found but not "sub setup_driver" which is plainly visible in the latest DBI.pm and has been in that module for several years. But the "missing *.al file" is a complete red herring.

- tye        


In reply to Re^2: Where do I obtain file DBI/setup_drive.al? (ENOMETHOD) by tye
in thread Where do I obtain file DBI/setup_drive.al? by apple123

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.