in reply to Advice for Perl teaching
It's a little difficult to guess what kind of things might be necessary to read Perl, but I think the most useful skill would be the ability to read variables and understand what kind of data structure is bring manipulated. Thus, I'd start with these three groups:
- Scalars, Arrays and Hashes
- Arrays of Arrays, Arrays of Hashes
- Hashes of Hashes, Hashes of Arrays
Picking the correct data structure is a pretty critical piece in solving a programming challenge. I used three parallel arrays in a recent solution, and the code worked incorrectly -- so I had to take a step back and re-think, and finally realized I needed a HoA. The final code was really quite elegant, and was a breeze to write.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Advice for Perl teaching
by Zenzizenzizenzic (Pilgrim) on Jan 07, 2019 at 22:50 UTC |
In Section
Seekers of Perl Wisdom