Hi
I have /another/ question - sorry, you have all been so good with my queries - thanks.
I am zipping up a bunch of files within directories - and the aim is to have the files but not the directories they are in : however, there is a file "BugList.txt" that exists in $WORKING/ area - I want this in the zip but it seems to mess up the zipping if it is in the array.
I have used a SHIFT which seems to be working - but is there any guarantee the buglist.txt will always be first in the array?
My code :
@list = glob("*");
shift(@list);
foreach $lang (@list)
{
print "Zipping $lang files\n";
chdir $lang;
system("zip -r $WORKING/$kitname *");
chdir $WORKING;
}
chdir $WORKING;
system("zip $WORKING/$kitname Buglist.txt");
Thanks for any help
I have /another/ question - sorry, you have all been so good with my queries - thanks.
I am zipping up a bunch of files within directories - and the aim is to have the files but not the directories they are in : however, there is a file "BugList.txt" that exists in $WORKING/ area - I want this in the zip but it seems to mess up the zipping if it is in the array.
I have used a SHIFT which seems to be working - but is there any guarantee the buglist.txt will always be first in the array?
My code :
@list = glob("*");
shift(@list);
foreach $lang (@list)
{
print "Zipping $lang files\n";
chdir $lang;
system("zip -r $WORKING/$kitname *");
chdir $WORKING;
}
chdir $WORKING;
system("zip $WORKING/$kitname Buglist.txt");
Thanks for any help