use warnings; use strict; use DirHandle; my $d = DirHandle->new('/tmp'); # <-- your directory here if (defined $d) { while (defined(my $fobj = $d->read)) { next if $fobj eq '.' or $fobj eq '..' or $fobj eq '.profile'; print "$fobj\n"; # <-- chown here } undef $d; }
In reply to Re: use FileHandle, readdir???
by toolic
in thread use FileHandle, readdir???
by dbs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |