Help for this page

Select Code to Download


  1. or download this
    my @entries = grep { /^\.+$/ } readdir(DH);
    
  2. or download this
    # Everything that isn't just dots.
    my @e = grep { ! /^\.+$/ } readdir(DH);
    
  3. or download this
    # Everything that doesn't begin with . or .. (better!)
    my @e = grep { ! /^\.\.?$/ } readdir(DH);