Help for this page

Select Code to Download


  1. or download this
    opendir my $dh, '/path/to/files', or die ...;
    while( my file = readdir $dh ) {
    ...
        # do something with the file
    }
    closedir $dh;
    
  2. or download this
    #! perl -slw
    use strict;
    ...
    
    $thread->join;