http://qs321.pair.com?node_id=857812

anu_1 has asked for the wisdom of the Perl Monks concerning the following question:

Hi ... I am trying to get the system error msg when the directory creation is failed. The code is
unless (`mkdir -p "xyz/abc/test"`) { print "Not able to create directory"; die "$!"; }
This code is running in cgi-bin script and is the output displayed as HTML. How to get the system error msg like permission denied... When this code runs ..only the print part is displayed .. Thanks for your help