Help for this page

Select Code to Download


  1. or download this
      opendir(DIR, 'c:/perl/test') or die "c:/perl/test: $!";
          ...
          open(MYFILE, ">myfile.txt") or die "myfile.txt: $!";
          open(THEFILE, "<$file") or die "$file: $!";
          ...
    
  2. or download this
        close(MYFILE) or die "c:/perl/test: $!";