Posted By

alfirth on 01/10/11


Tagged

catch try Eval mkpath makepath


Versions (?)

mkdir eval try catch


 / Published in: Perl
 

  1. use File::Path #core module
  2.  
  3. local $@;
  4. eval {mkpath('./foo')};
  5. if ($@) { die "failed to create dir $@\n";}

Report this snippet  

You need to login to post a comment.