This works for me in Windows, Perl v5.16.2: BEGIN { push @INC, '.\subdir\\'; }
The single period defines the current working directory and everything is relative from there.
EDIT: Sorry, forgot the above shuold be wrapped in a BEGIN block
In reply to Re: relative path is 'use lib' in perl
by SimonPratt
in thread relative path is 'use lib' in perl
by Mj1234
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |