Ticket #626 (closed defect: duplicate)

Opened 5 years ago

Last modified 5 years ago

use lib '.' not handled properly by syntax checker

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

Description

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

comment:1 Changed 5 years ago by Sewi

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

See ticket #474

Note: See TracTickets for help on using tickets.