Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!oliveb!orc!mipos3!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.lang.perl Subject: Re: "MOST COMMON NOVICE BUG" contest (now novice help) Message-ID: <1990Mar10.014400.4658@iwarp.intel.com> Date: 10 Mar 90 01:44:00 GMT References: <1990Mar9.094346.13142@lth.se> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 29 In-Reply-To: jh@efd.lth.se (Joergen Haegg) In article <1990Mar9.094346.13142@lth.se>, jh@efd (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 :-) He could wait about two months and read a draft of the first chapter of the Perl book. Or, you can feed him all my JAPH one-liners. Naaahhh! Actually, the archived stuff from the perl-users mailing list, which became comp.lang.perl, is probably pretty useful. Or, if anyone saved my postings to comp.unix.questions regarding common tasks in Perl, that'd be a good start too. There *are* quite a few good fragments in the 69-page manpage. Read that first. I found that the stuff in 'eg' in the distribution, as well as the stuff in 't' (yes, the tests!) were good to grab some of the idioms. for($i=129600;@x=gmtime($i),(print substr('Just another Perl hacker,',$x[5]*12+$x[4]-840,1)),($i+=2639520)<66117600;){;} -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/