Help for this page

Select Code to Download


  1. or download this
    foreach my $file (readdir D) {
       my ($filebase, $dirname, $ext) = fileparse($file, '\..*');
       my $csvFile = "$opts{d}\\$filebase.csv";
       open FILE_OUT, ">$csvFile" or die ...;
    
  2. or download this
    for my $file ( grep /\.txt$/, readdir D )
    
  3. or download this
    for my $file (<$opts{d}/*.txt>) # use a file glob