Modules

Tom Adams taa0 at cris.com
Wed May 23 20:27:06 CDT 2001


~sdpm~


Joel Fentin wrote:

> ~sdpm~
> Tom:
>
> > Also:
> >
> > http://www.perl.com/pub/doc/manual/html/pod/perlmodinstall.html
>
> This is not relevant to me. I am in no position to install modules at the
> host. I suppose I could find the latest version of the desired module and
> copy it to where my application program is. Is this what is normally done?

That's one way. Do 'perl -V' and that will tell you what's in the @INC array.
You could put something like

    BEGIN {
    push(@INC, "mylibdir");
    }

near the top of your script, where "mylibdir" is the path to the folder where
you
keep your modules.

>
> =========================
> > > http://www.perl.com/pub/doc/manual/html/pod/perlfunc/use.html
> > >
> > > An excerpt:
> > >
> > > If the first argument to use is a number, it is treated as a version
> number
> > > instead of a module name. If the version of the Perl interpreter is
> less than
> > > VERSION, then an error message is printed and
> > > Perl exits immediately.
>
> Yes, that tells me what the problem is. I already knew that. What I asked
> for was common usage in such cases. Do you eliminate the offending line in
> the .pm? Is there another common solution?

Presumably the author of the module specified a particular version because
earlier versions wouldn't work with it.

>
>
> --
> Joel Fentin    tel: 760-749-8863    FAX: 760-749-8864
>
> email: joel at fentin.com     web: Fentin.com
>
> ~sdpm~
>
> The posting address is: san-diego-pm-list at hfb.pm.org
>
> List requests should be sent to: majordomo at hfb.pm.org
>
> If you ever want to remove yourself from this mailing list,
> you can send mail to <majordomo at happyfunball.pm.org> with the following
> command in the body of your email message:
>
>     unsubscribe san-diego-pm-list
>
> If you ever need to get in contact with the owner of the list,
> (if you have trouble unsubscribing, or have questions about the
> list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
> This is the general rule for most mailing lists when you need
> to contact a human.

~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list