[LON-CAPA-dev] Extracting problems from page or sequence

H. K. Ng lon-capa-dev@mail.lon-capa.org
Thu, 27 Feb 2003 10:07:46 -0500


Never mind - I figure out why.




At 09:43 AM 2/27/03 -0500, you wrote:

>|     while ($depth > 0) {
>|         if($curRes == $iterator->BEGIN_MAP) { $depth++; }
>|         if($curRes == $iterator->END_MAP) { $depth++; }
>|
>|         if (ref($curRes) && $curRes->is_problem()) {
>| # What I want to do here is
>| #(1) to get the sym name for each problem that is enclosed in the above
>| #sequence/page,
>
>~              my $symb = $curRes->symb();
>
>
>I made some progress in the sense that I can now extract all the problems 
>in a page. However, the symb name as called from $curRes->symb() has all 
>the special characters returned as hex as given in the example below.
>
>problemname=fsu%2fng%2f2053c%2dwinter2003%2fAssignment01%2epage___4___fsu%2ffsuphysicslib%2f2053c_w03%2fset1%2fmatchUnits%2eproblem
>Title=Turbo-Prop Plane
>
>Question: Is there is function to convert it back?
>
>Thanks, - hk
>
>
>_______________________________________________
>LON-CAPA-dev mailing list
>LON-CAPA-dev@mail.lon-capa.org
>http://mail.lon-capa.org/mailman/listinfo/lon-capa-dev