in reply to Verifying Current Working Directory: getcwd() and absolute path
use Cwd qw(abs_path getcwd); if (abs_path('/home') eq getcwd) { print "Correct directory\n"; # do whatever needs to be done }
Of course, substitute your symlinked path for /home in the above
|
|---|