Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
        print "$_"; # print this file/directory's name
    }
    __END__
    
  2. or download this
    #! perl -slw
    use strict;
    ...
    my @files = glob("*"); 
    print "Files matched via glob pattern *: @files\n";
    __END__
    
  3. or download this
    #! perl -slw
    use strict;
    ...
        }    
    }
    __END__
    
  4. or download this
    if ($filename =~ /.txt/)
    
  5. or download this
    if ($filename =~ /\.txt/)