I've been working with Perl long enough that many of its idiosyncracies have become second nature to me. When new programmers join our group, they frequently have little to no experience with Perl, and it's usually my task to train them (to the extent necessary). I'd like to know what to focus on when training a programmer who is new to Perl but has experience with other languages (this question is meant to be language-agnostic, but most developers I've worked with have come from Java).
A few things occur to me:
- The proper use of sigils
- Referencing/Dereferencing
- Use of list functions like map, grep, sort
Is there anything in particular that you've found it useful to focus on when helping a programmer to transition to Perl? Do you stress the similarities or the differences, or both in equal measure?
Check out the tables of contents for my books. Both Learning Perl and Intermediate Perl are designed to teach programmers the Perl language. We cover the 80% of Perl that most people use all of the time and developed that from years and years of teaching people Perl. Each book is designed as a tutorial, and there are exercises at the end of each chapter. I've also written the Learning Perl Student Workbook to provide additional exercises. Programming Perl is a good reference, too.
There are actually very few rules that you need to know to "get" Perl, and most people don't get these rules right just by looking at code. Some things to teach new Perlers who are coming from another language:
Good luck :)