in reply to Re^2: A conversation with a C programmer
in thread A conversation with a C programmer
or evennext if $file =~ /^\.\.?$/;
is much nicer thannext if $file =~ /^\.+$/; # no longer recommended. see below
next if $file =~ /^\.{1,2}$/;
But that's just me.
UPDATE/note: yes, the second one will also match files named with any quantity of dots as long as that's the entire filename. In practice, I've never seen a file that started with "..", but I agree it's an issue.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: A conversation with a C programmer
by fizbin (Chaplain) on Mar 25, 2006 at 06:28 UTC | |
Re^4: A conversation with a C programmer
by Anonymous Monk on Mar 16, 2006 at 02:03 UTC |