in reply to Getting current directory

Probably the dumbest way, but nobody mentioned before:
$current_path = `pwd`;
BEAT ME BEAT ME, SPANK ME SPANK ME, but don't (--) me please :-)))

-- tune