From: John J. <jj...@as...> - 2005-08-13 01:02:08
|
Michael Gage wrote: > > On Aug 12, 2005, at 6:36 PM, John Jones wrote: > >> Hi, >> >> There was a discussion on the discussion board stemming from >> Nandor's problems which generate graphs based on student answers. >> Part of the resolution was that a problem should always refresh its >> on the fly graphics if refreshCachedImages is non-zero. >> >> I created a problem and set $refreshCachedImages=1 in the problem. >> The place to check this is in dangerousMacros.pl. I have tried >> $main::refreshCachedImages and $main::PG_FLAGS{refreshCachedImages} >> (and a few other variations), and I cannot see the value of this >> variable. >> >> What is the right way to access this value, or is there none? For >> example, if the call from the problem to insertGraph is evaluated >> before ENDDOCUMENT, then any help from ENDDOCUMENT won't be seen. >> > > Try my $refreshedCachedImages = eval ( "$main::refreshCachedImages"); That doesn't work either, nor does my $refreshCachedImages = eval("$main::PG_FLAGS{refreshCachedImages}"); Are used variables inside the pg files accessible from functions like pg/macros? John |