in reply to current working dir is location of script?
#!/usr/bin/perl print $ENV{PWD}, "\n"; [download]
/home/me [download]
/ [download]