Hi all,
I'm trying to get the following script to scan a particular teamsite directory and submit all the files to IW stage. However nothing seems to happen when I run it. Am I missing something? Thanks.
use File::Find;
my $dir = "/default/main/mfs/WORKAREA/mfsemc/files/images/heritage";
my @files;
find(\&wanted, $dir);
foreach $filepath(@files) {
$command = "/iw-home/bin/iwsubmit -w -u $filepath";
print "$command \n";
}
sub wanted {-f && push(@files, $File::Find::name);}