http://www.perlmonks.org?node_id=1001290


in reply to Noob Question

In addition to previous answers, you can use Cwd to get the current working directory.
Sorry if my advice was wrong.