Help for this page

Select Code to Download


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