Help for this page

Select Code to Download


  1. or download this
    foreach my $file (@files) {
        if( -f $file) {
    ...
            print "<$file> is not a plain file.\n";
        }
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
    foreach my $file (@files){
        print "<$file> is ", -f $file ? '' : 'not ', "a plain file.\n";
    }