Help for this page

Select Code to Download


  1. or download this
     for my $file (`ls -l /some/dir`) { ... }
    
  2. or download this
        opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!";
        @files= grep { -f "$some_dir/$_" } readdir(DIR);
        closedir DIR;
    
  3. or download this
     
    #
    # mailit - send an email using mailx. Accepts either a $body or a path
    + 
    ...
                    }        
            }        
    }