in reply to Writing current working directory to $variable
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`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Writing current working directory to $variable
by merlyn (Sage) on Aug 27, 2000 at 07:23 UTC | |
|
RE: Re: Writing current working directory to $variable
by Limo (Scribe) on Aug 27, 2000 at 03:27 UTC | |
by Limo (Scribe) on Aug 27, 2000 at 03:33 UTC |