in reply to Win32::Perms Remove method
I think that instead of trying to do the recursion yourself, you ought to be looking at using the SetRecurse() method. This is a sample supplied with the package (see ..\perl\site\lib\win32\perms\recurse.pl)
use Win32::Perms; $Dir = 'd:\temp' unless( $Dir = $ARGV[0] ); $P = new Win32::Perms( $Dir ); # Set the all of the files called *.tmp in the specified directory $P->SetRecurse( "$Dir/*.tmp" ); print "Finished\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::Perms Remove method
by Discipulus (Canon) on Jun 15, 2004 at 09:31 UTC | |
by BrowserUk (Patriarch) on Jun 15, 2004 at 10:03 UTC |