in reply to Re: Re: How portable are common $! error codes?
in thread How portable are common $! error codes?
I know, a bit simplistic, but just throwing the idea out there for ya. YMMV.if ( -e $file ) { #file exists if ( -f $file ) { #file is also plain do_your_thing(); } else { special_error_handler_for_non_plain_files(); } } else { #file doesn't exist special_error_handler_for_nonexistent_files(); }
|
|---|