There's more than one way to do things | |
PerlMonks |
Re^3: File::Glob Ignores Dot Filesby Anonymous Monk |
on Aug 31, 2007 at 20:13 UTC ( [id://636421]=note: print w/replies, xml ) | Need Help?? |
System directories '.' and '..' can be ignored just by using file test flag '-f':
my @files = grep { -f } bsd_glob( "{.*,*}" );
In Section
Seekers of Perl Wisdom
|
|