M
monk
Hi all, I was wondering if you guys can help me figure this out.
This is what I'm trying to do:
read in a file containing paths to directories /home/foo/logs,
etc...all fine here.
I'd like to get into those directories and process the files inside.
Problem in this part.
This is what I have:
##slurp file into @directories_to_clean blah blah blah...
foreach (@directories_to_clean){
chomp;
print "$_\n"; #testing if I got the right directories and I do
ex: /home/foo/logs
#Here is the problem. It stops below claiming there's no file or
directory.
#same thing if I try to set a variable instead of default $_
# Isn't $_ equivalent to /home/foo/logs above ???
opendir (ARCHIVE, $_) or die "what the?...$!";
This is what I'm trying to do:
read in a file containing paths to directories /home/foo/logs,
etc...all fine here.
I'd like to get into those directories and process the files inside.
Problem in this part.
This is what I have:
##slurp file into @directories_to_clean blah blah blah...
foreach (@directories_to_clean){
chomp;
print "$_\n"; #testing if I got the right directories and I do
ex: /home/foo/logs
#Here is the problem. It stops below claiming there's no file or
directory.
#same thing if I try to set a variable instead of default $_
# Isn't $_ equivalent to /home/foo/logs above ???
opendir (ARCHIVE, $_) or die "what the?...$!";