On 06/28/2015 05:44 PM, dan moylan wrote:


1st: in my code:
   $fll = "/home/moylan/www/cgi-bin/stuff/moyts6.log";
   $fhl = new FileHandle ();

i know you haven't touched your code in ages but filehandle.pm has been deprecated for over a decade! in fact it is just a wrapper around IO::Handle. and you don't need that either for basic stuff like this.
   $fhl->open ($fll, "w") or die "couldn't open $fll";

always print $! when a system call fails so you know why. it might have helped you debug this as a permissions problem if you saw the error message.
   $fhl->printf ("# MOYTS6\n\n");

why printf when you have no %patterns or data? use plain print for that.

thanx,

uri


_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to