Modules

Tom Adams taa0 at cris.com
Wed May 23 09:14:56 CDT 2001


~sdpm~
Also:

http://www.perl.com/pub/doc/manual/html/pod/perlmodinstall.html

Tom Adams wrote:

> Take a look at the 'use' page:
>
> 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.
>
> Joel Fentin wrote:
>
> > ~sdpm~
> > I wrote a program that used File::Basename. It worked in the laptop, but
> > when I uploaded the program to the host, it didn't work. My presumption is
> > that the host doesn't have Basename.
> >
> > So I uploaded Basename.pm into the same directory where my perl file
> > resides. Then I added lines like these into my program:
> > use File::Basename;
> > require "Basename.pm";
> >
> > Here is one error:
> > [Tue May 22 17:24:09 2001] ul.pl: [Tue May 22 17:24:09 2001] ul.pl: Perl
> > 5.00564 required--this is only version 5.00503, stopped at Basename.pm line
> > 138. [Tue May 22 17:24:09 2001] ul.pl: BEGIN failed--compilation aborted at
> > Basename.pm line 138.
> >
> > So, I simply performed the function with a regular expression.
> >
> > But the basic question stays in my mind. If I need a module, what is the/a
> > constructive way of dealing with this?
> >
> > Thank you.
> > --
> > 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