laziness, impatience, and hubris | |
PerlMonks |
Re: Using perl to teach programmingby japhy (Canon) |
on Jan 30, 2001 at 21:18 UTC ( [id://55275]=note: print w/replies, xml ) | Need Help?? |
Since you're eval()ing the code they enter to set the variables and such, you can directly reproduce the code of the subroutine, as long as you request that they enter ONE subroutine at a time, and that subroutines are entered by themselves. This also does not work for code references. But it is a start.
japhy -- Perl and Regex Hacker
In Section
Cool Uses for Perl
|
|