|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^2: Deleting corrupted perl files - modifying the perl runtimeby Corion (Patriarch) |
| on Jul 29, 2008 at 06:38 UTC ( [id://700738]=note: print w/replies, xml ) | Need Help?? |
|
Personally, I've learned to not do rm -- "$i" but to use the following idiom:
This allows me to inspect what would happen if I were to run the command. When I'm confident that the output is what I want, I either delete the echo from the line or pipe the whole output into another shell:
I employ a similar technique before issuing a manual DELETE command on a database.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||