SPUG: @INC different in IE5 and NSNavigator

Andrew Sweger andy at n2h2.com
Thu Sep 21 13:10:54 CDT 2000


Fred, are you running these as client-side scripts?

On Sep 20, 2000 @ 3:21pm, fred.giorgi at philips.com wrote:

> A strange learning experience.
> I have a link on my web page to a perl script that uses a module
> called "sheet.pm" which I wrote. The module is in the same directory
> as the script so I put these lines at the top of my script.
> use FindBin;
> use lib $FindBin::Bin;
> use sheet;
> I can execute my script by selecting the html link in Exploder but not
> in Navigator. The @INC array is different when using each browser.
> Navigator gives me a "d:/TEMP" in @INC where Exploder gives me the
> correct path to my module. I see that Navigator copies the script to
> d:/TEMP before attempting to run it while Explorer actually runs it
> from the original location. So Perl does not see my module located in
> d:/TEMP and thus aborts.  I had to hard code the link to the module
> thus adding :  use lib "//the/original/path/to/my/module"; prior to
> the use sheet;  line.
> bummer
> --fred

-- 
 Andrew Sweger <andy at n2h2.com>   |  N2H2, Incorporated
 Systems Architect               |  900 Fourth Avenue, Suite 3400
 Advanced Technologies Division  |  Seattle WA 98164-1059
 v=206.336.2947  f=206.336.1541  |  http://www.n2h2.com/


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list