in reply to Variable path

You can also code in defaults and allow command line overrides (such as specifying a root file directory) using something like Getopt::Long or Getopt::Std.

If the files are always relative to the installed script you can use FindBin to find the full path of your Perl script.