Opened 10 years ago

Closed 10 years ago

#626 closed defect (duplicate)

use lib '.' not handled properly by syntax checker

Reported by: Floyd-ATC Owned by:
Priority: minor Milestone:
Component: editor Version: 0.47
Keywords: Cc:


I'm writing a script designed to run in both Windows and Linux. This means I can't use a full path name to my custom modules; the directory "D:\perl\foo" in Windows is called something completely different in Linux.

Because of this, I use '.' during development, like so:
use lib '.';
use Foo::Bar;

Unfortunately, this produces the following error message:

Can't locate Foo/Bar?.pm in @INC (@INC contains: C:/strawberry/perl/lib C:/strawberry/perl/site/lib .).
BEGIN failed--compilation aborted

I should perhaps mention that the script runs just fine if I hit F5

Change History (1)

comment:1 Changed 10 years ago by Sewi

  • Resolution set to duplicate
  • Status changed from new to closed

See ticket #474

Note: See TracTickets for help on using tickets.