system() only returns the status code. you can use backticks (`) if you want the output:use Cwd; my $dir = getcwd;
ps. read merlyn's comment below.my $dir = `pwd`;
In reply to Re: Writing current working directory to $variable
by ar0n
in thread Writing current working directory to $variable
by Limo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |