Just a comment: pwd is the current working directory, not the directory where the program resides. These two can be identical, but they don't have to, and relying on such a fact is dangerous.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]