[thelist] perl/sendmail/base64/mime problem

Keith cache at dowebscentral.com
Mon Feb 18 21:02:00 CST 2002


> >         use MIME::Base64 qw(encode_base64);
>
> If you admin won't do this for you, there is a way to install the
> packages in your "home" directory and point to them within your
>perl scripts.

I don't know if this will work on all servers/modules but I've yet to find
one that it wont work on. If Perl cannot find a module in it's standard
library path it will look on a path relative to the script. In the above
example, create a directory named MIME in the same directory as
the script, then place Base64.pm and the other files in the tarball in
that directory. I use IMAGE:Size on a few servers that don't have it
in the library and on those I've just placed size.pm in the same
directory with the script and referenced it
  use Size;

Is that *supposed* to work Anthony, or have I just been lucky? How
do you "point" a script to some other destination?

keith





More information about the thelist mailing list