On Sun, 27 Jan 2002, Philip S Tellis wrote:

> Sometime on Jan 26, Nishikant Kapoor assembled some asciibets to say:
>
> > push (@INC, "/home/nkapoor/www/cgi-bin");
>
> this puts your directory at the end of @INC.  You want it at the
> beginning.  Use unshift instead.

But rememeber, it has to be in a BEGIN block.  Both of these will work:

  BEGIN { unshift @INC, "/my/lib" }

And

  use lib "/my/lib";

Since the have effect at compile-time and do that same thing.  To use
HTML::Template from a setup like that you'll have to then have the file:

  /my/lib/HTML/Template.pm

If you just try:

  /my/lib/Template.pm

It won't get loaded for HTML::Template.

-sam



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to