I know I could use File::Spec::splitpath($0) to formulate it, and add it to the LIB, and could either write it as one long nested expression on the end of a use lib, or put it in a BEGIN block.
But, does $0 contain the whole path on all platforms? Is there an easier or more idiomatic way to do this?
—John
In reply to Breaking a script into smaller files by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |