Help for this page

Select Code to Download


  1. or download this
    my @in = grep { /\.txt$/ } readdir IN; # read all file names form dir 
    +except names started with dot
    
  2. or download this
    my @in = grep { !/^\./ && /\.txt$/ } readdir IN; # read all file names
    + from dir except names started with dot
    
  3. or download this
      open IN, '<', "Outpatient/$in" || next;
      open OUT, '>', "TXT/$in" || die "can't open file Formatted/$in";
    
  4. or download this
      open IN, '<', "Outpatient/$in" or next;
      open OUT, '>', "TXT/$in" or die "can't open file Formatted/$in";
    
  5. or download this
      open( IN, '<', "Outpatient/$in" ) || next;
      open( OUT, '>', "TXT/$in" ) || die "can't open file Formatted/$in";