in reply to remove function
Because it is so easy to synthesis?:
sub remove { my $path = shift; if( -f $path ) { unlink $path; } elsif( -d $path ) { rmdir $path } else{ die "Dunno what to do with $path?" } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |