We don't bite newbies here... much | |
PerlMonks |
Re: Training non-programmers in Perl regexpsby Zaxo (Archbishop) |
on Jul 09, 2005 at 02:48 UTC ( [id://473635]=note: print w/replies, xml ) | Need Help?? |
For that kind of student, I like to introduce them in three stages, leaving out fancy stuff like extended constructs.
The omission of alternation is intentional. Unsophisticated users overuse them and can easily land themselves in a computational tarpit. The postgraduate course is to point out some of the other things possible and refer to perlretut and perlre. The key is to show them new things that are useful to them right away. Don't demand big conceptual leaps without motivation, and allow them to practice before demanding another. An editor which does incremental regex searches with highlighting is valuable for illustrating how regexen work, live. Emacs incremental search is documented in info emacs Incremental Search. Vim documents its version in the "pattern.txt" manual chapter. After Compline,
In Section
Seekers of Perl Wisdom
|
|