--- rat/lonuserstate.pm 2005/03/15 19:25:30 1.87 +++ rat/lonuserstate.pm 2005/03/18 21:55:49 1.88 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construct and maintain state and binary representation of course for user # -# $Id: lonuserstate.pm,v 1.87 2005/03/15 19:25:30 albertel Exp $ +# $Id: lonuserstate.pm,v 1.88 2005/03/18 21:55:49 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -32,7 +32,6 @@ package Apache::lonuserstate; # ------------------------------------------------- modules used by this module use strict; use Apache::Constants qw(:common :http); -use Apache::File; use HTML::TokeParser; use Apache::lonnet(); use Apache::loncommon(); @@ -589,7 +588,7 @@ sub readmap { # ---------------------------------------------------- Store away initial state { my $cfh; - if ($cfh=Apache::File->new(">$fn.state")) { + if (open($cfh,">$fn.state")) { print $cfh join("\n",@cond); } else { &Apache::lonnet::logthis("WARNING: ".