well my original script had the line :-
foreach my $file (@files) {
next if -d $file;
etc, etc;
}
this did not seem to work ,however taking everyone's advice I changed the line to;
-d $file && next;
This seems to work!!!!
Hi, I'm using Activestae perl on a WinXP box. Can anyone tell me the best way to test if a file is a directory since -d does not seem to work.
Thanks :-)
Hi peeps,
I'm using Win32::OLE to open a load of excel files - I nees to read two cells, one with a date and the other with a time. My program seems to have trouble closing each instance of excel.
I use $obj = Win32::OLE->new(Excel.Application, 'Quit');
and at the end I also use;
$obj->close...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.