in reply to concise perl rm -rf idiom that works?
-f is the default behaviour. You are turning it off.
Change
perl -e 'use File::Path "rmtree"; rmtree("foo", 0, 1)'
to
perl -e 'use File::Path "rmtree"; rmtree("foo", 0, 0)'
or just
perl -e 'use File::Path "rmtree"; rmtree("foo")'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: concise perl rm -rf idiom that works?
by thepler (Novice) on Mar 21, 2007 at 23:02 UTC |