#!C:/perl/bin/perl.exe use CGI; $query = new CGI; $v01= "/images/image1.jpg"; $v02= "/images/image2.jpg"; $v03= "/images/image3.jpg"; print $query->header; print $query->start_html(-title=>'Mental Rotation'); print ""; print "Image Rating Example.

Each image depicts two objects. In some cases, one object is a simple rotation of the other. In other cases, the two objects are not the same. For each image, decide whether the objects are the same (i.e., one is a simple rotation of the other) or whether they are different.

"; print "
"; @varlist= ("v01", "v02", "v03"); srand; @new = (); while (@varlist){ push(@new, splice(@varlist, rand @varlist,1)); } @varlist= @new; print "
"; for($i = 0; $i <= 2; ++$i){ $image= $varlist[$i]; print "
"; print ""; print "
Same
Different

"; } print ""; print "
"; print $query->end_html;