in reply to Myth busted: Shell isn't always faster than Perl
You really only want to unlink "regular" files; and this makes the comparison apples-and-apples with the shell version.sub { -f _ or return; unlink $_;
Also, explicitly testing '.' and '..' is superfluous, because they'd be caught by -d.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Myth busted: Shell isn't always faster than Perl
by VSarkiss (Monsignor) on Dec 30, 2005 at 18:42 UTC | |
by jdporter (Paladin) on Dec 31, 2005 at 17:32 UTC |