in reply to Re: Test::Class and use lib
in thread Test::Class and use lib

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.