Ticket #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: |
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
Note: See
TracTickets for help on using
tickets.

See ticket #474