Help for this page

Select Code to Download


  1. or download this
    sub get_files_count {
        my ($dir) = @_;
        opendir my $dir_h, $dir or return 0;
    ...
    }
    
    print get_files_count('./');
    
  2. or download this
    sub get_files_count {
        my ($dir) = @_;
        opendir my $dir_h, $dir or return 0;
    ...
    }
    
    print get_files_count('./');