in reply to how to get the current folder name where the program is running?

use Cwd; my ($bottomdir) = cwd() =~ m|([^/]*)$|;

------------
:Wq
Not an editor command: Wq
  • Comment on Re: how to get the current folder name where the program is running?
  • Download Code