john wright wrote:
> Hi All,
Hello,
> i am getting error "The system cannot find the path specified" while running
> below lines code.
>
> $dirname = "util";
> $path = ` cd $dirname ; pwd`
> print ("$path");
>
> can anybody help me to get output of pwd in the variable $path.
use Cwd;
my $dirname = 'util';
chdir $dirname or die "Cannot 'chdir $dirname' $!";
my $path = getcwd;
print $path;
John
--
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>