Johnno wrote:

> open(OUT,">$working_folder/counter.txt") or die "cannot create counter
> file";
> 
> how can i make it so it will tell me what the error is and don't cannot
> create counter file??

Add $! to the die message:

        ... or die "cannot create counter file: $!";

-- 
   ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
  (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
   / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to