Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!convex!convex.COM From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: "MOST COMMON NOVICE BUG" contest (now novice help) Message-ID: <100509@convex.convex.com> Date: 10 Mar 90 15:23:47 GMT References: <1990Mar9.094346.13142@lth.se> Sender: news@convex.com Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 52 In article <1990Mar9.094346.13142@lth.se> jh@efd.lth.se (Joergen Haegg) writes: |I'm trying to convince a friend to give up awk, and use perl instead. >He replies: "Give me 10-20 simple examples, like in the awk books!" > >He just want to get started directly, and not read the manual. >(Always the same problem when you use something, and don't have the >time to learn something new.) > >So, is there someone who has stumbled on this problem and have >made some simple examples? (I just don't want to reinvent something :-) Sure, you can look in the perl source directory under eg/. I also have an increasingly large set of pedagogical and practical examples, many of which I used in the tutorial I gave at the last USENIX. Since Convex isn't currently allowing anonymous FTP in, jgreely@cis.ohio-state.edu has in a highly laudable act of altruism consented to keeping a pub/perl/scripts/tchrist/ directory of these things on his machine. I need to either send him an update or else finagle some anon FTP on one of my machines. Here is a sorted list of the files under 100 lines kept there, which should be kept there. I will also mail off the complete set to anyone who asks, using the tarmailchunky package to split it up into smaller, btoa-encoded pieces. The suite also has larger examples, like cfman and pstruct, which even come with man pages. 15 source.pl 23 xpost 26 getalias 26 sortbyfield 28 getline 29 today 34 easy 36 flush.pl 38 ttimer 50 nfinger 52 forwmail 58 nlist 61 badrhosts 65 uuhost 68 syslog.pl 81 itimers.pl There is a README file included telling what each of these demos. I hear from Randal that if you just try to blindly reply to my mail and postings there may be problems -- he at least has them. Consult my signature for better reply addresses than news sticks in the headers. --tom -- Tom Christiansen {uunet,uiucdcs,sun}!convex!tchrist Convex Computer Corporation tchrist@convex.COM "EMACS belongs in : Editor too big!"