Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict; 
    use warnings; 
    my $dir_path="Your Directory Path"; 
    opendir (DIR, $tmp_dir) or die $!;
    
  2. or download this
    open (MYFILE, '>>data.txt');
    
  3. or download this
    while (my $file_name = readdir(DIR)) {print "$file_name\n";}