Problem
Explain two ways in which the list-processing capabilities of Scheme and Prolog are similar? Perl allows both statistics and a kind of dynamic scoping. Write a pearl program that uses both and clearly show the difference in effects of the two. Explain clearly the difference between the dynamic scoping described in this chapter and that implemented in perl.