Hi
I am building the following script to recurse back and forth down a
directory tree
Unfortunatel chdir does not work
This is the script
#!/usr/bin/perl -ww
open(BLD_LIST,"buildlist");
my @pkg=<BLD_LIST>;
my $ver=$ARGV[2];
my $name=$ARGV[0];
my $release=$ARGV[1];
foreach my $pkg (@pkg){
my $dir1=$pkg;
use Cwd;
my $dir2=getcwd();
my $dir3="$dir2/$dir1/";
chdir $dir3 or die "cannot change";
my $dir4=getcwd();
print "$dir3\n"
the print shows the directory that I am trying to change to but chdir
just does not work
--
Linux, Gnome what more do you need
http://www.redtux.demon.co.uk
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]