in reply to Removing Directory and Contents with Perl
Perhaps what you want, for at least some unix variants, is something like this:
#!/usr/local/bin/perl -w use strict; my $deletedir = '/tmp/test1'; my $result = system("rm -rf $deletedir"); print "Result: $result\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Removing Directory and Contents with Perl
by shandor (Monk) on Mar 02, 2007 at 02:35 UTC |
In Section
Seekers of Perl Wisdom