Help for this page

Select Code to Download


  1. or download this
    my $dir_path="\Incoming\Temp";
    
  2. or download this
    opendir (Incoming\Temp, $tmp_dir) or die $!;
    
  3. or download this
    opendir my $DIR, $dir_path or die $!;
    
  4. or download this
    open (MYFILE, '>>vehicles.txt');
    
  5. or download this
    open my $OUT, '>>', 'vehicles.txt' or die $!;
    
  6. or download this
    while (my $filename = readdir $DIR) {
        open my $FILE, '<', "$dir_path/$filename" or die $!;
    ...
            print $OUT $content;
        }
    }
    
  7. or download this
    CLOSEDIR;