in reply to Difference btw. abs_path and $0?

maybe you want to use FindBin?