--- rat/lonuserstate.pm 2006/05/30 17:15:10 1.114 +++ rat/lonuserstate.pm 2006/05/30 19:11:37 1.115 @@ -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.114 2006/05/30 17:15:10 www Exp $ +# $Id: lonuserstate.pm,v 1.115 2006/05/30 19:11:37 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -686,8 +686,9 @@ sub evalstate { if (-e $fn) { my @conditions=(); { - open(my $fh,$fn); + open(my $fh,"<$fn"); @conditions=<$fh>; + close($fh); } my $safeeval = new Safe; my $safehole = new Safe::Hole;