my $val = /xyz/abc/dkd
mkdir ($val);
rc = $?----------------> bug here , u have to use $rc
Other thing is if mkdir() sucessfully created a directory.,then it returns a zero value, otherwise it returns non-zero value,Don't bother about that it's vary from os to os.
Leave a comment: