Cody Pendant has asked for the wisdom of the Perl Monks concerning the following question:

I wanted to experiment with CGI::Session on a server where I don't have command-line access. So I just uploaded the source I got from CPAN into a "modules" folder, and tried to use it.

When I try to create a new CGI::Session object, I get this message:

Can't locate auto/CGI/Session/File/expire.al in @INC (@INC contains: ./modules/ [etc etc])

Which has me rather stumped. I'm not familiar with files ending in "al" and I don't get the "auto" part either. TIA...



($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re: What's "expire.al"?
by ysth (Canon) on Apr 11, 2005 at 02:03 UTC
    To save a few microseconds and kB, some modules parcel out some of their functions into separate files, which are only loaded when they are called (via AUTOLOAD).

    You can disable this by commenting out the use AutoLoader 'AUTOLOAD'; line at the top and the __END__ line about 40% of the way down the file.

      Thanks! It seems like it's working, though strangely, the module (Version 3.95) also seemed to have a missing "my" on line 953.


      ($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
      =~y~b-v~a-z~s; print
Re: What's "expire.al"? (bad msg)
by tye (Sage) on Apr 11, 2005 at 03:15 UTC

    It usually means that you tried to use a non-existent method and were given a very poor choice of an error message from an auto-loader, making you think you've got a misinstalled module when you very rarely do.

    - tye        

Re: What's "expire.al"?
by tilly (Archbishop) on Apr 11, 2005 at 01:59 UTC