Help for this page
use POSIX qw( :errno_h ); ... if( $! == EISDIR ) { warn "error was directory\n" }