Search code examples
perlgetcwdcwd

Is it possible to get Current Working Directory in miniperl (NOT PERL)?


The only difference between miniperl and perl is that miniperl cannot load XS-based perl modules as shared objects. So it can't load WIN32 or CWD modules.

Is it possible to get Current Working Directory in miniperl?


Solution

  • Yes, it's possible using the following:

    chomp( my $cwd = `cd` );