in reply to Reading Directory

Or use grep to filter the directory

@a = grep {$_ !~ /^\.{1,2}$/} readdir(PATCH);

Replies are listed 'Best First'.
Re^2: Reading Directory
by Sun751 (Beadle) on Jul 14, 2009 at 23:28 UTC
    Hi there your grep seems to work but can you make me understand how?, I am not getting this "!~" business. suggestion please, Cheers
      I am not getting this "!~" business
      From Binding Operators:
      Binary "!~" is just like "=~" except the return value is negated in the logical sense.