two things.
- why doesn't the 'die' message get displayed - "Error: release log directory creation failed..."?
- why does the script name and line number get displayed despite the inclusion of a '\n'. apparently adding a newline prevents this from happening.
Code:
if (! -d "$logdir") {
use File::Path;
mkpath "$logdir" || die ("ERROR: release log directory creation failed - $logdir: $!\n");
print "\nINFO: Directory created - $logdir\n";
}
Code:
the result:
mkdir /build/cm_test_sharee: Permission denied at ./crm.prl line 122