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?" } }
In reply to Re: remove function
by BrowserUk
in thread remove function
by irah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |