Help for this page

Select Code to Download


  1. or download this
    @files = <>;
    chomp @files; # Since there are trailing newlines
    foreach $file (@files) {
    ...
            print "\n\nThis is a directory: " . $file."\n";
        }
    }
    
  2. or download this
    use strict;
    use warnings; 
    
    ...
            print "\n\nThis is a directory: $file\n";
        }
    }