teaching perl data structures