in reply to My first thought was to build a macro... was I right?
Any reason you couldn't do this?
--t. alexsub trash { my ($o, $item) = @_; eval ( ( -d $item ) ? rmtree ( $item ) : unlink ( $item ) ); $o->log ( 'error', "$item": $@" ) if ( $@ ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: My first thought was to build a macro... was I right?
by princepawn (Parson) on Dec 03, 2002 at 15:52 UTC |