in reply to use of <STDOUT>
If you just want the current directory, use core module Cwd.
use Cwd; print cwd; [download]
TGI says moo