- or download this
my (%inf,@info,@keys,$phile,$key,$value);
- or download this
use Cwd;
my $dir=Cwd->getcwd();
opendir(DIR,"$dir")or die "@!";
- or download this
while ( $phile=readdir(DIR)){
if($phile=~/^\.$/){next;}
elsif($phile=~/^\.\.$/){next;}
- or download this
next if $phile =~ /.../;
- or download this
next if $phile eq '.' or $phile eq '..';
- or download this
elsif($phile=~/^(.*)$/)
- or download this
{print "$phile\n";info($phile)}
info ($phile);
}
- or download this
sub info{
@info=stat($phile);
@keys=qw(Dev Inode Mode NLink UID GID RDev Size ATime CTime Bl
+ksize Blocks);
- or download this
#!/usr/bin/perl
...
}
__END__