Help for this page

Select Code to Download


  1. or download this
    opendir DIR, "dirname";
    @files = readdir DIR;
    ...
    for $file (@files) {
      do whatever you want ...
    }
    
  2. or download this
    for $file (@files) {
      next if $file =~ /^.+/;
    }
    
  3. or download this
    for $file (@files) {
      next if $file !~ /\.whatever/;
      do your stuff here
    }
    
  4. or download this
    -----------------------------------
    --the good, the bad and the physi--
    -----------------------------------