$path = "C:\Test\Logs; make_path( '$path' , { error => \$LG_FH_Directory_Error } ); if ( $LG_FH_Directory_Error && @$LG_FH_Directory_Error ) { $LG_FH_Directory_Status = '1'; } if ( !$LG_FH_Directory_Error || !@$LG_FH_Directory_Error ) { $LG_FH_Directory_Status = '0'; }