Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> A read of perl philosophy is surely worth, but if they are already programmers then ModernPerl is the right book. Oh yes, strongly agree. Especially given the pupil is already an experienced programmer. chromatic explains why Modern Perl is so short (see also the excellent reply by xdg):
Modern Perl also tends to be kept more up to date with the latest version of Perl than Programming Perl, say. Depending on your pupil, it might also be worth emphasizing the difference between Readability and Maintainability. Not sure if you're planning on mentioning TMTOWTDI or TIMTOWTDIBSCINABTE but I noticed when playing code golf that Python often out-TMTOWTDI'ed Perl! :) Update: Regular expressions are built into the language in Perl, while in Python they're provided by the re module -- this makes a massive difference in terms of convenience and ease of use, so you'll probably find yourself reaching for a regex solution more often in Perl than Python (especially if you're tybalt89 ;-). Another key point that should be carefully explained in your course is Perl's unusual use of context, especially scalar vs list context. Further update: Autovivification is yet another Perl quirk -- see "Emulation in other programming languages section" for one way to emulate it in Python. See also: Re^2: Honest question about Perl, Python and Ruby (autovivification), which shows how I emulated it in Ruby. In reply to Re^2: Perl tutorial building on Python skills?
by eyepopslikeamosquito
|
|