john wright wrote: > > 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.
Hi John It's best to do things in Perl if at all possible: use strict; use warnings; use Cwd; chdir 'util' or die $!; my $path = cwd; print "$path\n"; HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>