That said, I would use the fragment of very untested code below, to construct a hopefully more portable alternative by using File::Spec...
You don't need to do this since use lib does it for you :-) From the POD:
In order to keep lib.pm small and simple, it only works with Unix filepaths. This doesn't mean it only works on Unix, but non-Unix users must first translate their file paths to Unix conventions.
In reply to Re^2: Test::Class and use lib
by adrianh
in thread Test::Class and use lib
by friedo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |