in reply to Deleting corrupted perl files - modifying the perl runtime
If you are sure that all non-corrupt perl scripts actually compile, you can write something like this on the shell:
for i in *; do perl -c "$i" || rm "$i"; done
(assuming a bash-like shell). Please make a backup first ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Deleting corrupted perl files - modifying the perl runtime
by Corion (Patriarch) on Jul 29, 2008 at 06:38 UTC |