The reason you are getting the pwd is because pwd prints to standard out.
If you want to capture the output of the pwd in the variable use my $dir = `pwd`;
Cheers - L~R
In reply to Re: system pwd
by Limbic~Region
in thread system pwd
by vbrtrmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |