Re: using backticks

2006-10-06 Thread John W. Krahn
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 $dir

Re: using backticks

2006-10-06 Thread Rob Dixon
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

Re: using backticks

2006-07-09 Thread Mahdi A Sbeih
Hi Ron, Thank you very very much, -Mahdi. Rob Dixon wrote: Mahdi A Sbeih wrote: > > I am using the below code: > > $fmtFile = `$dpImportCmd`; > .. > .. > unlink($fmtFile) || die "unable to remove $fmtFile\n"; > > > dpImportCmd, is a program that generates a text file, this text file > name i

Re: using backticks

2006-07-09 Thread Rob Dixon
Mahdi A Sbeih wrote: > > I am using the below code: > > $fmtFile = `$dpImportCmd`; > .. > .. > unlink($fmtFile) || die "unable to remove $fmtFile\n"; > > > dpImportCmd, is a program that generates a text file, this text file > name is now in the variable: $fmtFile. Later in the program, I want to