From tbcatwork at yahoo.com Mon Feb 4 15:37:34 2002 From: tbcatwork at yahoo.com (Tim Chambers) Date: Thu Aug 5 00:18:08 2004 Subject: Perl lunch this Thursday Message-ID: <00b201c1adc4$29457e60$80441d82@TC5570P> Mark your calendars now. WHAT: monthly Pikes Peak Perl Mongers lunch WHERE: TBD WHEN: Thursday, 2/7, at 11:30 Any suggestions for where to meet? <>< Tim From tbcatwork at yahoo.com Tue Feb 5 14:29:41 2002 From: tbcatwork at yahoo.com (Tim Chambers) Date: Thu Aug 5 00:18:08 2004 Subject: Perl Mongers memo (lunch; library;book review is overdue) Message-ID: <009701c1ae83$d810e820$80441d82@TC5570P> Just a few items. Tim Chambers ><> Founder, Pikes Peak Perl Mongers http://pikes-peak.pm.org/ # # # LUNCH THIS THURSDAY Bob Gattis has suggested Japanese. My preferences, in order: Ichiban (on Tejon), Tako, Jun, Suehiro. Reply to all with your preferences (Japanese or otherwise). # # # PPPM LIBRARY We have a growing collection. Reply to me if you want me to bring anything to the lunch this Thursday. Title: PYTHON AND XML Author: ? Publisher: O'Reilly URL: In Possession Of: O'Reilly As of: 5 February 2002 Notes: requested by Bob Gattis ; will be delivered to Tim, who will then announce its arrival; Bob has first dibs Title: DATA MUNGING WITH PERL Author: David Cross Publisher: Manning Publications Co. URL: http://www.manning.com/cross In Possession Of: Bob Gattis As of: 15 May 2001 Notes: Courtesy of Manning. Title: NETWORK PROGRAMMING WITH PERL Author: Lincoln D. Stein Publisher: Addison-Wesley URL: http://www.awlonline.com/product/0,2627,0201615711,00.html In Possession Of: Tim Chambers As of: 5 Feb 2002 Notes: this is only a galley copy, courtesy of Addison-Wesley Title: PROGRAMMING PYTHON, 2ND EDITION Author: Mark Lutz Publisher: O'Reilly URL: http://www.oreilly.com/catalog/python2/ In Possession Of: Tim Chambers As of: 5 Feb 2002 Notes: includes a CD-ROM Title: THE WIKI WAY Author: Bo Leuf & Ward Cunningham Publisher: Addison-Wesley URL: http://www.wiki.org/ In Possession Of: Tim Chambers As of: 5 Feb 2002 Notes: includes a CD-ROM; this is Tim's personal copy on loan to PPPM # # # BOOK REVIEWS My records indicate that Ken Scott and Bob Gattis have seen DATA MUNGING WITH PERL. This book was given to the PPPM with the understanding that we would produce a review. It's been just over a year. Ken and Bob -- have any thoughts? # # # From jtevans at kilnar.com Tue Feb 5 17:32:23 2002 From: jtevans at kilnar.com (John Evans) Date: Thu Aug 5 00:18:08 2004 Subject: Perl Mongers memo (lunch; library;book review is overdue) In-Reply-To: <009701c1ae83$d810e820$80441d82@TC5570P> Message-ID: On Tue, 5 Feb 2002, Tim Chambers wrote: > LUNCH THIS THURSDAY > > Bob Gattis has suggested Japanese. My preferences, in order: Ichiban (on > Tejon), Tako, Jun, Suehiro. > > Reply to all with your preferences (Japanese or otherwise). > I just landed a job that won't allow me to get there for lunch for the forseeable future. Looks like I'll be missing out for quite some time. -- John Evans http://jtevans.kilnar.com/ -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s++:- a- C+++>++++ ULSB++++$ P+++$ L++++$ E--- W++ N+ o? K? w O- M V PS+ !PE Y+ PGP t(--) 5-- X++(+++) R+++ tv+ b+++(++++) DI+++ D++>+++ G+ e h--- r+++ y+++ ------END GEEK CODE BLOCK------ From tbcatwork at yahoo.com Wed Feb 6 14:50:26 2002 From: tbcatwork at yahoo.com (Tim Chambers) Date: Thu Aug 5 00:18:08 2004 Subject: Perl Mongers lunch TOMORROW References: <009701c1ae83$d810e820$80441d82@TC5570P> <20020206021849.GA4471@pcisys.net> Message-ID: <004001c1af4f$e8e6c6c0$80441d82@TC5570P> Dear Perl Mongers, We have two votes (Bob & me) for Japanese and one against (Eric). I'm OK with another place, but the burden is on Eric to make a non-Japanese suggestion. I also want to hear from Bob. If Bob won't yield, we'll stick with Japanese because he spoke up first. So the status is that if the decision were final right now, we would meet at Ichiban. But this is a FINAL call for input on where to meet. I'll announce a final decision at 5:00 today. Please reply to all. ----- Original Message ----- From: "Eric Schwartz" To: "Tim Chambers" Cc: "Pikes Peak Perl Mongers" ; Sent: Tuesday, February 05, 2002 7:18 PM Subject: Re: Perl Mongers memo (lunch; library;book review is overdue) > On Tue, Feb 05, 2002 at 01:29:41PM -0700, Tim Chambers wrote: > > Bob Gattis has suggested Japanese. My preferences, in order: Ichiban (on > > Tejon), Tako, Jun, Suehiro. > > > > Reply to all with your preferences (Japanese or otherwise). > > I had Japanese today, and am having it (at Ichiban, actually) tomorrow. > Something non-Japanese would be a Good Thing(tm) from my POV. > > -=Eric From ningersoll at cso.atmel.com Wed Feb 6 15:02:43 2002 From: ningersoll at cso.atmel.com (Nelson Ingersoll) Date: Thu Aug 5 00:18:08 2004 Subject: Perl Mongers lunch TOMORROW In-Reply-To: <004001c1af4f$e8e6c6c0$80441d82@TC5570P> References: <009701c1ae83$d810e820$80441d82@TC5570P> <20020206021849.GA4471@pcisys.net> Message-ID: <5.1.0.14.2.20020206135551.00a5bc60@postal.atmel.com> Compatriot Perl Mongers, Assuming I can make it. My current plan is to come. I vote for Japanese too. I like fish and rice ... though eating bait has never been my strong suit. And now that I've spoken up I 'spose I'll have ta make it a point to show up... else I'll become a Perl Mongee. Or is that Perl Mungee? - Nelson Ingersoll (Scribo, ergo sum) ===================================================================== Nelson E. Ingersoll <> Sr. Principal Software Grunt --------------------------------------------------------------------- ATMEL Corporation <> Desk: 719-540-1263 Mail Stop 10240 <> FAX: 719-540-6998 1150 E. Cheyenne Mtn Blvd. <> Pager: 719-921-7917 Colorado Springs, CO 80906 <> INTERNET: ningersoll@cso.atmel.com United States of America <> ningersoll@codenet.net =================== No good deed goes unpunished! =================== At 2/6/2002 01:50 PM, Tim Chambers wrote: >Dear Perl Mongers, > >We have two votes (Bob & me) for Japanese and one against (Eric). I'm OK >with another place, but the burden is on Eric to make a non-Japanese >suggestion. I also want to hear from Bob. If Bob won't yield, we'll stick >with Japanese because he spoke up first. > >So the status is that if the decision were final right now, we would meet at >Ichiban. But this is a FINAL call for input on where to meet. I'll announce >a final decision at 5:00 today. > >Please reply to all. > > >----- Original Message ----- >From: "Eric Schwartz" >To: "Tim Chambers" >Cc: "Pikes Peak Perl Mongers" ; > >Sent: Tuesday, February 05, 2002 7:18 PM >Subject: Re: Perl Mongers memo (lunch; library;book review is overdue) > > > > On Tue, Feb 05, 2002 at 01:29:41PM -0700, Tim Chambers wrote: > > > Bob Gattis has suggested Japanese. My preferences, in order: Ichiban (on > > > Tejon), Tako, Jun, Suehiro. > > > > > > Reply to all with your preferences (Japanese or otherwise). > > > > I had Japanese today, and am having it (at Ichiban, actually) tomorrow. > > Something non-Japanese would be a Good Thing(tm) from my POV. > > > > -=Eric From rhgattis at mtc-inc.com Wed Feb 6 15:04:43 2002 From: rhgattis at mtc-inc.com (Bob Gattis (Meeting the Challenge, Inc.)) Date: Thu Aug 5 00:18:08 2004 Subject: Perl Mongers lunch TOMORROW In-Reply-To: <004001c1af4f$e8e6c6c0$80441d82@TC5570P> Message-ID: <3C6137FB.23885.11A42BF@localhost> Dear Perl Mongers, > We have two votes (Bob & me) for Japanese and one against (Eric). I'm > OK with another place, but the burden is on Eric to make a > non-Japanese suggestion. I also want to hear from Bob. If Bob won't > yield, we'll stick with Japanese because he spoke up first. No problem with Occidental cuisine choice. I wanted to start the discussion on where to meet. Bob Meeting the Challenge, Inc. rhgattis@mtc-inc.com Office: (719) 578-8448 Cell #: (719) 310-9658 Fax: (719) 444-0269 From cmiltonperl at yahoo.com Wed Feb 6 15:57:46 2002 From: cmiltonperl at yahoo.com (Christopher Milton) Date: Thu Aug 5 00:18:08 2004 Subject: Perl Mongers lunch TOMORROW In-Reply-To: <5.1.0.14.2.20020206135551.00a5bc60@postal.atmel.com> Message-ID: <20020206215746.18860.qmail@web20806.mail.yahoo.com> Ichiban: Where on Tejon? --- Nelson Ingersoll wrote: > Compatriot Perl Mongers, > > Assuming I can make it. My current plan is to come. I vote for > Japanese too. I like fish and rice ... though eating bait has never been > my strong suit. And now that I've spoken up I 'spose I'll have ta make it > a point to show up... else I'll become a Perl Mongee. Or is that Perl > Mungee? His name is Teco Hacking, and I claim my 5 quid... I think the idea was that we should fish or cut bait. /me ducks. __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From tbcatwork at yahoo.com Wed Feb 6 18:11:30 2002 From: tbcatwork at yahoo.com (Tim Chambers) Date: Thu Aug 5 00:18:08 2004 Subject: Perl Mongers lunch TOMORROW at Ichiban Message-ID: <002701c1af6b$fee53440$80441d82@TC5570P> WHAT: monthly Pikes Peak Perl Mongers lunch WHERE: Ichiban (Boulder & Tejon) WHEN: Thursday, 2/7, at 11:30 Well, here's how it turned out. Nelson chimed in with another vote for Japanese. Bob was OK with other options, but no one suggested any. So Ichiban it is. Hope to see you all there. (Especially Tom, to whom I'm sending a blind copy because he wrote to me to express interest.) I checked my files. Ironically, Eric first suggested Ichiban last January, but he was already there today. (Eric -- I hope there's enough variety to get you back there again tomorrow.) PPPM met there last June. <>< Tim 719 590 5570 telephone 719 651 0116 cellular From tbcatwork at yahoo.com Thu Feb 7 09:38:37 2002 From: tbcatwork at yahoo.com (Tim Chambers) Date: Thu Aug 5 00:18:08 2004 Subject: REMINDER: Perl lunch TODAY Message-ID: <001a01c1afed$82f8d4e0$80441d82@TC5570P> WHAT: monthly Pikes Peak Perl Mongers lunch WHERE: Ichiban (downtown on the corner of Boulder & Tejon) WHEN: today (Thursday, 2/7), at 11:30 <>< Tim 719 590 5570 telephone 719 651 0116 cellular From hierophant at pcisys.net Thu Feb 7 10:10:13 2002 From: hierophant at pcisys.net (Keary Suska) Date: Thu Aug 5 00:18:08 2004 Subject: REMINDER: Perl lunch TODAY In-Reply-To: <001a01c1afed$82f8d4e0$80441d82@TC5570P> Message-ID: on 2/7/02 8:38 AM, tbcatwork@yahoo.com purportedly said: > WHAT: monthly Pikes Peak Perl Mongers lunch > WHERE: Ichiban (downtown on the corner of Boulder & Tejon) > WHEN: today (Thursday, 2/7), at 11:30 > I regret that I will not be able to attend. I'll be in a boring business meeting while you are all enjoying one of my favorite cuisines . Keary Suska Esoteritech, Inc. "Leveraging Open Source for a better Internet" From pwdrhound at pcisys.net Thu Feb 7 10:07:18 2002 From: pwdrhound at pcisys.net (pwdrhound@pcisys.net) Date: Thu Aug 5 00:18:08 2004 Subject: REMINDER: Perl lunch TODAY Message-ID: <200202071707.g17H7HEQ000212@leo.pcisys.net> > WHAT: monthly Pikes Peak Perl Mongers lunch > WHERE: Ichiban (downtown on the corner of Boulder & Tejon) > WHEN: today (Thursday, 2/7), at 11:30 I am actually able to attend this month! See you all there. Greg Walters --------------------------------------------- This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ From tbcatwork at yahoo.com Sat Feb 9 13:59:32 2002 From: tbcatwork at yahoo.com (Tim Chambers) Date: Thu Aug 5 00:18:08 2004 Subject: Fw: Newsletter from O'Reilly UG Program, February 8 Message-ID: <002801c1b1a4$4c234fa0$7283b88d@TC5570P> Date:Fri, 8 Feb 2002 20:56:12 -0800 (PST) From:"Marsee Henon" O'Reilly User Group Program NEWSLETTER February 8, 2002 We've got lots of new books coming in! This week's issue is a long one; we're catching up in Denise's absence. Next week we should go back to our usual length. HIGHLIGHTS THIS WEEK: NEWS: -First Annual Google Programming Contest (with a grand prize of $10,000) -AppleScript Primer for Mac OS X -Frank Willison Award -Miguel on Mono; an interview with Miguel de Icaza -Web Services Journal Readers Choice Awards BOOK NEWS: -Sax2 -Practical PostgreSQL -Access Database Design & Programming, 3rd Edition -HTML Pocket Reference, 2nd Edition -C# Essentials, 2nd Edition -IP Routing offers -Learning Red Hat Linux, 2nd Edition -Solaris 8 Administrator's Guide -Programming with Qt, 2nd Edition -Running Weblogs with Slash ================================================ NEWS FROM O'REILLY & BEYOND ================================================ Spread the word to your members.... ------------------------------- GENERAL INTEREST ------------------------------- GOOGLE PROGRAMMING CONTEST Google announces their first annual Google programming contest (with a grand prize of $10,000). Check it out at: http://www.google.com/programming-contest/ --------------- MAC --------------- APPLESCRIPT PRIMER FOR MAC OS X Curious about AppleScript for Mac OS X but don't know where to start? Here's an Online introduction to how AppleScript works with AppleScript Studio, Unix Shell, Terminal App, and Web services, by Bruce Perry, author of O'Reilly's AppleScript in a Nutshell: http://www.oreillynet.com/pub/a/mac/2002/02/01/applescript_macosx.html --------------------- OPEN SOURCE --------------------- MIGUEL ON MONO; an interview with Miguel de Icaza on the .NET DevCenter: http://www.oreillynet.com/pub/a/dotnet/2002/02/04/mono.html FRANK WILLISON AWARD This year's Frank Willison Award for Contributions to the Python Community was presented to Andrew Kuchling at the Tenth International Python Conference. Guido van Rossum, one of the award's judges, said that "besides being a prolific programmer who has contributed to many corners of the Python implementation, Andrew has done numerous writing projects related to Python." For more details about this award see the Press Release: http://press.oreilly.com/willison_award.html Tenth International Python Conference http://www.python10.org/ -------------------- WEB SERVICES -------------------- Web Services Journal is accepting votes for their Readers Choice Awards. Categories include best app, best framework, best middleware, and yes, best book (a few ORA books have been nominated, including Programming.Web Services with Soap, Programming. Web Services with XML-RPC, and Peer-to-Peer). http://www.sys-con.com/webservices/readerschoice/index.cfm (These are still available for review, let me know if you want to check them out.) ================================================ BOOK NEWS ================================================ REVIEW COPIES ARE AVAILABLE, email me for a copy. If you have a deadline please let me know in your subject line. Feel free to re-use or forward the press release, in any way you see fit. Don't forget, your members get 20% off any O'Reilly book they purchase direct from O'Reilly. Just use code DSUG when ordering. SAX2 All the information you need to use SAX2 (Simple API for XML), the dominant API for efficient XML processing with Java. Order Number 2378 http://www.oreilly.com/catalog/sax2/ The authors Top Ten SAX2 Tips: http://www.xml.com/pub/a/2001/12/05/sax2.html Chapter 3 Producing SAX2 Events: http://www.oreilly.com/catalog/sax2/chapter/ch03.html Press Release: http://press.oreilly.com/sax2.html PRACTICAL POSTGRESQL Order Number: 8466 Arguably the most capable of all the open source databases, PostgreSQL is an object-relational database management system that--until now-lacked comprehensive, easy-to-use documentation. Practical PostgreSQL is a fast-paced guide that shows you how to get PostgreSQL installed, configured, and running. http://www.oreilly.com/catalog/ppostgresql/ Chapter 2, Installing PostgresSQL is available at: http://www.oreilly.com/catalog/ppostgresql/chapter/ch02.pdf Press release: http://press.oreilly.com/ppostgresql.html ACCESS DATABASE DESIGN & PROGRAMMING, 3RD EDITION Order Number: 2734 The book one critic called "A must-have for the serious Access developer." http://www.oreilly.com/catalog/accessdata3/ Chapter 4 Database Design Principles is available online: http://www.oreilly.com/catalog/accessdata3/chapter/ch04.html Press Release: http://press.oreilly.com/accessdata3.html HTML POCKET REFERENCE, 2ND EDITION Order Number: 2963 The second edition of this handy pocket reference to every HTML tag in the current HTML specification (4.01). http://www.oreilly.com/catalog/htmlpr2/ C# ESSENTIALS, 2ND EDITION Order Number: 3153 Concise but thorough, this second edition of C# Essentials introduces the Microsoft C# programming language. http://oreilly.com/catalog/csharpess2/ Chapter 1, Introduction, is available online: http://www.oreilly.com/catalog/csharpess2/chapter/ch01.html Press release: http://press.oreilly.com/csharpess2.html IP ROUTING Order Number: 2750 This concise guide offers the basic concepts of IP routing, helping you master not only the fundamentals of all the major routing protocols, but also the underlying principles on which they are based. http://www.oreilly.com/catalog/iprouting/ Chapter 4, Enhanced Interior Gateway Routing Protocol (EIGRP), is available online: http://www.oreilly.com/catalog/iprouting/chapter/ch04.html Press Release: http://press.oreilly.com/iprouting.html LEARNING RED HAT LINUX, 2ND EDITION Order Number: 0715 An excellent introduction to one of the most popular distributions of Linux in the U.S. Because the book is written specifically for the enclosed CDs, the reader needs nothing else to get started with his or her new Linux system. http://www.oreilly.com/catalog/redhat2/ Chapter 13, Advanced Shell Usage and Shell Scripts is available online: http://www.oreilly.com/catalog/redhat2/chapter/ch13.html Press Release: http://press.oreilly.com/redhat2.html SOLARIS 8 ADMINISTRATOR'S GUIDE Order Number: 0731 Written for experienced network administrators who want an objective guide to networking with Solaris, the book covers installation on the Intel and Sparc platforms, and instructs you how to setup Solaris as a file server, application server, and database server. http://www.oreilly.com/catalog/solaris8/ Programming with Qt, 2nd Edition Order Number: 0642 Completely updated for Qt Version 3.0, Programming Qt guides you through the steps of writing your first Qt application. http://www.oreilly.com/catalog/prowqt2/ An article by the author, Design Patterns in Qt, is available online: http://www.onlamp.com/pub/a/onlamp/2002/01/10/designqt.html RUNNING WEBLOGS WITH SLASH Order Number: 1002 Slash is the open-source software system that drives the hugely popular Slashdot web site and many others. Slash implements the kind of web site that has come to be called a "weblog": a moderated list, in reverse-chronological order, of timely items, with links to further discussion on-site, or to further information off-site. Anyone who wants to get a weblog site up and running will want to read Running Weblogs with Slash. http://www.oreilly.com/catalog/runblogslash/ Chapter 4, Editing and Updating Stories, is available online: http://www.oreilly.com/catalog/runblogslash/chapter/ch04.html ================================================ ANNOUNCEMENTS FROM YOUR PEERS ================================================ ROCKY MOUNTAIN REGION: RMOUG Training Days 2002 Denver, Colorado February 20-21, 2002 This year's conference will continue the tradition of training excellence. Join us for two days of expanded training session, networking with Oracle professionals, and viewing the largest Oracle exhibit in the Rocky Mountain region. For more information go to our web site at www.rmoug.org If your group has an event you'd like me to post, let me know. --Marsee From ningersoll at cso.atmel.com Wed Feb 13 18:00:45 2002 From: ningersoll at cso.atmel.com (Nelson Ingersoll) Date: Thu Aug 5 00:18:08 2004 Subject: Subset regular expression substitution Message-ID: <5.1.0.14.2.20020213163643.0321e710@postal.atmel.com> Greetings Fellow Mongers, I have a string which may, or may not, have parenthesis somewhere in the first 10 characters. The string is always longer than 10 characters. I want to substitute space for either "(" or ")" or both. Because that part of the string which beyond the tenth character is descriptive text, I dare not change any parenthesis after the first 10 characters. I understand the regex {$x =~ s/\(|\)/ /g;} matches any and all occurrences of either the '(' or ')' characters and replaces any '(' or ')' with a space. The issue is, can I force the substitution, "s/\(|\)/ /g", to only work over the first 10 characters of $x rather than all characters? Is this possible in a regex? If not, I can always sub-string wing it. Your thoughts will be appreciated! - Nelson ... ===================================================================== Nelson E. Ingersoll <> Sr. Principal Software Grunt --------------------------------------------------------------------- ATMEL Corporation <> Desk: 719-540-1263 Mail Stop 10240 <> FAX: 719-540-6998 1150 E. Cheyenne Mtn Blvd. <> Pager: 719-921-7917 Colorado Springs, CO 80906 <> INTERNET: ningersoll@cso.atmel.com United States of America <> ningersoll@codenet.net ================== No good deed goes unpunished! ==================== From hierophant at pcisys.net Wed Feb 13 18:28:21 2002 From: hierophant at pcisys.net (Keary Suska) Date: Thu Aug 5 00:18:08 2004 Subject: Subset regular expression substitution In-Reply-To: <5.1.0.14.2.20020213163643.0321e710@postal.atmel.com> Message-ID: on 2/13/02 5:00 PM, ningersoll@cso.atmel.com purportedly said: > I have a string which may, or may not, have parenthesis somewhere in > the first 10 characters. The string is always longer than 10 > characters. I want to substitute space for either "(" or ")" or > both. Because that part of the string which beyond the tenth character is > descriptive text, I dare not change any parenthesis after the first 10 > characters. I understand the regex {$x =~ s/\(|\)/ /g;} matches any and > all occurrences of either the '(' or ')' characters and replaces any '(' or > ')' with a space. > > The issue is, can I force the substitution, "s/\(|\)/ /g", to only work > over the first 10 characters of $x rather than all characters? Is this > possible in a regex? If not, I can always sub-string wing it. > > Your thoughts will be appreciated! TIMTOWTDI, of course. If brevity is what you want, you could use: $text =~ s|^(.{10})|do{ $str = $1; $str =~ s/[()]/ /g; $str }|e; Anything dissimilar would require multiple steps. Keary Suska Esoteritech, Inc. "Leveraging Open Source for a better Internet" From ningersoll at cso.atmel.com Thu Feb 14 11:32:46 2002 From: ningersoll at cso.atmel.com (Nelson Ingersoll) Date: Thu Aug 5 00:18:08 2004 Subject: Subset regular expression substitution In-Reply-To: References: <5.1.0.14.2.20020213163643.0321e710@postal.atmel.com> Message-ID: <5.1.0.14.2.20020214095210.03022250@postal.atmel.com> Keary! Beautimous! Works like a charm. However, I am not familiar with the syntax s|^(.{10})| ... |e; Looks typically cryptic and probably called something odd. Can you point me to where I might learn more about it? I have most of the Perl books and this is the first time I've ever seen it. I feel so naive! Thank you! - Nelson ... Ignorance knows what stupidity doesn't. At 2/13/2002 05:28 PM, Keary Suska wrote: >on 2/13/02 5:00 PM, ningersoll@cso.atmel.com purportedly said: > > > I have a string which may, or may not, have parenthesis somewhere in > > the first 10 characters. The string is always longer than 10 > > characters. I want to substitute space for either "(" or ")" or > > both. Because that part of the string which beyond the tenth character is > > descriptive text, I dare not change any parenthesis after the first 10 > > characters. I understand the regex {$x =~ s/\(|\)/ /g;} matches any and > > all occurrences of either the '(' or ')' characters and replaces any '(' or > > ')' with a space. > > > > The issue is, can I force the substitution, "s/\(|\)/ /g", to only work > > over the first 10 characters of $x rather than all characters? Is this > > possible in a regex? If not, I can always sub-string wing it. > > > > Your thoughts will be appreciated! > >TIMTOWTDI, of course. If brevity is what you want, you could use: > > $text =~ s|^(.{10})|do{ $str = $1; $str =~ s/[()]/ /g; $str }|e; > >Anything dissimilar would require multiple steps. > >Keary Suska >Esoteritech, Inc. >"Leveraging Open Source for a better Internet" From hierophant at pcisys.net Thu Feb 14 12:19:24 2002 From: hierophant at pcisys.net (Keary Suska) Date: Thu Aug 5 00:18:08 2004 Subject: Subset regular expression substitution In-Reply-To: <5.1.0.14.2.20020214095210.03022250@postal.atmel.com> Message-ID: on 2/14/02 10:32 AM, ningersoll@cso.atmel.com purportedly said: > Looks typically cryptic and probably called something odd. Can you point > me to where I might learn more about it? I have most of the Perl books and > this is the first time I've ever seen it. I feel so naive! The regex section in the Camel book covers the use of {} and the /e option. "Mastering Regular Expressions" might be useful, but I don't recall off the top of my head. It's pretty straightforward. I'll break it down for you: s|^(.{10})|do{ $str = $1; $str =~ s/[()]/ /g; $str }|e First off, '|' is used as the expression delimiter so Perl doesn't get confused over the '/' used in the substitution expression. ^(.{10}) The {} characters indicate a match on an arbitrary number of the preceding expression, as opposed to say, '+', which means one or more. {10} means match exactly 10 consecutive occurrences of the previous expression. I used '.', which indicates any character, thus the whole match expression means any 10 characters, anchored at the beginning ('^'), thus the first ten characters. I enclose the expression in () because I want a call back for the substitution expression. do{ $str = $1; $str =~ s/[()]/ /g; $str }|e The 'e' option tells Perl to interpret the substitution string as a Perl expression. You can think of this as causing Perl to eval() whatever appears there, and uses the result value as the substitution string. do{ $str = $1; $str =~ s/[()]/ /g; $str } The "do" may not be necessary, I don't recall. All it does is allow a block of statements to be treated as a single expression. The Camel book discusses this in the "Control Structures" section, IIRC. In this block I assign the callback (the matched expression, which is the first 10 characters of the string), to a variable, then substitute every occurrence of a paren with a space. The trailing "$str" simply ensures that the result value of the block expression will be $str. Same as "return $str". Perl then substitutes the first 10 characters of the string with the value of $str, which is the first 10 characters of the string with parens converted to spaces. For performance, you may want to consider using tr/// instead in the do{} if you will be executing this expression many times, and possibly the /o option for the whole expression, although I don't recall how that interacts with the /e option. Keary Suska Esoteritech, Inc. "Leveraging Open Source for a better Internet" From tbcatwork at yahoo.com Fri Feb 15 22:21:27 2002 From: tbcatwork at yahoo.com (Tim Chambers) Date: Thu Aug 5 00:18:08 2004 Subject: Fw: Newsletter from O'Reilly UG Program February 15 Message-ID: <000d01c1b6a1$68eda840$2182b88d@TC5570P> From:"Marsee Henon" Subject:Newsletter from O'Reilly UG Program February 15 O'Reilly User Group Program NEWSLETTER February 15, 2002 HIGHLIGHTS THIS WEEK: NEWS: -Safari Makes the Top 100 [undiscovered] Web Sites by PC Magazine -Geek Cruises -You Can Hack .NET Without Buying Visual Studio -Top Ten Traps in C# for C++ Programmers -Java Developers Journal Readers Choice Award Voting Open -Windows XP from a Mac Perspective -Top Ten FAQs for Web Services BOOK NEWS: -Using SANs and NAS -SVG Essentials -System Performance Tuning, 2nd Edition CONFERENCES: -Registration is now open for The O'Reilly Emerging Technology Conference May 13-16, 2002, in Santa Clara, CA ================================================ NEWS FROM O'REILLY & BEYOND ================================================ Spread the word to your members.... ------------------------------- GENERAL NEWS ------------------------------- O'REILLY's SAFARI MAKES THE TOP 100 [UNDISCOVERED] WEB SITES BY PC MAGAZINE Top 100 [Undiscovered] Web Sites PC magazine announces 100 terrific, underappreciated sites http://www.pcmag.com/article/0,2997,s=25087&a=22115,00.asp About Safari: "Among the world's great mysteries--ranking with "Why is James Coburn on the cover of Band on the Run?"--is "Why are there animals on the covers of O'Reilly Technology guides?" We have no idea. But we do know that these are the best computer manuals around, and that now, for a small fee, you can access them online." http://www.pcmag.com/article/0,2997,s=25087&a=22096,00.asp Check out Safari for yourself: http://safari.oreilly.com/mainhom.asp?home PLANNING TO TAKE A CRUISE THIS SUMMER? Check out Geek Cruises http://www.geekcruises.com/ Cruises include: MAC MANIA, Alaska, May, 27-June 3 Featuring O'Reilly authors David Pogue, Randal L. Schwartz, and Adam Engst JAVA JAMM III, Alaska, September 7-14, 2002 Featuring O'Reilly author Jason Hunter --------------------- .NET --------------------- YOU CAN HACK .NET WITHOUT BUYING VISUAL STUDIO .NET Brian Jepson explains how programmers can get started working with C#, including how to use the C# compiler and the cordbg.exe debugger, all without purchasing Visual Studio .NET http://www.oreillynet.com/pub/a/dotnet/2002/02/11/hackdotnet.html TOP TEN TRAPS IN C# FOR C++ PROGRAMMERS What features in C# are potential traps for the unwary C++ programmer? Learn about the ten most dangerous ones in this article by Jesse Liberty, author of O'Reilly's "Programming C#, 2nd Edition." http://www.oreillynet.com/pub/a/dotnet/2002/02/11/csharp_traps.html --------------------- Java --------------------- JAVA DEVELOPERS JOURNAL READERS CHOICE AWARD Voting has now begun for the 2002 annual Java Developer's Journal (JDJ) Readers' Choice Awards. Lots of O'Reilly Books have been nominated for Best Book, other categories include: Best Java App, Component, Enterprise Database, IDE Environment, etc. http://www.sys-con.com/java/readerschoice2002/ --------------------- MAC --------------------- WINDOWS XP FROM A MAC PERSPECTIVE "Mac OS X has created many side effects in my computing life. One of them was that I could no longer tolerate Windows 98 on my companion Windows computer. Would XP relieve my pain?" See what else Derrick Story has to say: http://www.oreillynet.com/pub/a/mac/2002/02/12/xp_review.html -------------------- WEB SERVICES -------------------- TOP TEN FAQS FOR WEB SERVICES Web services represent an important evolutionary step in building distributed applications. But, what exactly is a Web service? What is the Web service protocol stack? And, does the World Wide Web Consortium support any Web service standards? Ethan Cerami, author of "Web Services Essentials" explains: http://www.oreillynet.com/pub/a/webservices/2002/02/12/webservicefaqs.html ================================================ BOOK NEWS ================================================ REVIEW COPIES ARE AVAILABLE, email me for a copy. Press Releases available at: http://press.oreilly.com/ Don't forget, your members get 20% off any O'Reilly book they purchase direct from O'Reilly. Just use code DSUG when ordering. SVG ESSENTIALS Order Number: 2238 Scalable Vector Graphics--or SVG--is the new XML-based graphics standard from the W3C that will enable Web documents to be smaller, faster and more interactive. This insightful book takes you through the ins and outs of SVG, from the basics to more complicated features http://www.oreilly.com/catalog/svgess/ Chapter 3 "Basic Shapes" http://www.oreilly.com/catalog/svgess/chapter/ch03.html SYSTEM PERFORMANCE TUNING, 2ND EDITION Order Number: 284X System Performance Tuning covers two distinct areas: performance tuning, or the art of increasing performance for a specific application, and capacity planning, or deciding what hardware best fulfills a given role. http://www.oreilly.com/catalog/spt2/ Chapter4 "Memory" http://www.oreilly.com/catalog/spt2/chapter/ch04.html USING SANS AND NAS Order Number: 1533 Storage Area Networks (SANs) and Network Attached Storage (NAS) allow organizations to manage and back up huge file systems quickly. W. Curtis Preston's book takes you through the ins and outs of building and managing large data centers using SANs and NAS. http://www.oreilly.com/catalog/sansnas/ Chapter 4 "SAN Backup and Recovery" http://www.oreilly.com/catalog/sansnas/chapter/ch04.html ================================================ CONFERENCES ================================================ THE O'REILLY EMERGING TECHNOLOGY Conference, May 13-16, 2002 Santa Clara, CA, This conference expands upon the themes of the enormously successful P2P and Web Services Conferences and encourages the attendees to participate in building the Internet Operating System--distributed, unteathered, adaptive. For more about the conference, see: http://conferences.oreilly.com/etcon/ ####################################################### An Invitation From Tim O'Reilly and Rael Dornfest: http://conferences.oreillynet.com/pub/w/18/invite.html ####################################################### User group discount is 20% for conferences. Use the discount code: DSUG. Register before March 22nd, and receive a double discount! Your 20% will apply towards already reduced "Early Bird" pricing if you register early. Conference Registration: http://conferences.oreillynet.com/cs/et2002/create/ord_et02 ================================================ ANNOUNCEMENTS FROM YOUR PEERS ================================================ Virginia- The Hampton Roads Oracle Users Group is having their monthly meeting March 6th at the Chesapeake Main Library off Cedar Road at 8:30AM -10:30AM. Hazel Zamperini, HROUG President, hzamperini@cox.net If your group has an event you'd like me to post, let me know. Until next week, Marsee From dave.waddell at wcom.com Thu Feb 21 12:46:09 2002 From: dave.waddell at wcom.com (David R. Waddell) Date: Thu Aug 5 00:18:08 2004 Subject: Subset regular expression substitution In-Reply-To: <5.1.0.14.2.20020213163643.0321e710@postal.atmel.com> Message-ID: <3.0.6.32.20020221114609.0081e790@pop.mcit.com> Hi Nelson, There is another way that is probably more efficient than regular expressions for this. It also may be more understandable when you look at the code: while(<>){ substr($_,0,10) =~ tr/()/ / } continue{ print STDOUT } It only performs the tr on the first 10 characters. all the best, david At 05:00 PM 2/13/02 -0700, Nelson Ingersoll wrote: >Greetings Fellow Mongers, > > I have a string which may, or may not, have parenthesis somewhere in >the first 10 characters. The string is always longer than 10 >characters. I want to substitute space for either "(" or ")" or >both. Because that part of the string which beyond the tenth character is >descriptive text, I dare not change any parenthesis after the first 10 >characters. I understand the regex {$x =~ s/\(|\)/ /g;} matches any and >all occurrences of either the '(' or ')' characters and replaces any '(' or >')' with a space. > > The issue is, can I force the substitution, "s/\(|\)/ /g", to only work >over the first 10 characters of $x rather than all characters? Is this >possible in a regex? If not, I can always sub-string wing it. > > Your thoughts will be appreciated! > >- Nelson ... > >===================================================================== >Nelson E. Ingersoll <> Sr. Principal Software Grunt >--------------------------------------------------------------------- >ATMEL Corporation <> Desk: 719-540-1263 >Mail Stop 10240 <> FAX: 719-540-6998 >1150 E. Cheyenne Mtn Blvd. <> Pager: 719-921-7917 >Colorado Springs, CO 80906 <> INTERNET: ningersoll@cso.atmel.com >United States of America <> ningersoll@codenet.net >================== No good deed goes unpunished! ==================== > > From hierophant at pcisys.net Thu Feb 21 13:30:23 2002 From: hierophant at pcisys.net (Keary Suska) Date: Thu Aug 5 00:18:08 2004 Subject: Subset regular expression substitution In-Reply-To: <3.0.6.32.20020221114609.0081e790@pop.mcit.com> Message-ID: on 2/21/02 11:46 AM, dave.waddell@wcom.com purportedly said: > substr($_,0,10) =~ tr/()/ / Nice and elegant! I keep forgetting that substr() is a legal lvalue. Perl rocks! Keary Suska Esoteritech, Inc. "Leveraging Open Source for a better Internet" From ningersoll at cso.atmel.com Thu Feb 21 13:59:23 2002 From: ningersoll at cso.atmel.com (Nelson Ingersoll) Date: Thu Aug 5 00:18:08 2004 Subject: Subset regular expression substitution In-Reply-To: <3.0.6.32.20020221114609.0081e790@pop.mcit.com> References: <5.1.0.14.2.20020213163643.0321e710@postal.atmel.com> Message-ID: <5.1.0.14.2.20020221125736.03a8ab00@postal.atmel.com> David, I agree with Keary. "Nice and elegant!" Thank you! - Nelson ... At 2/21/2002 11:46 AM, David R. Waddell wrote: >Hi Nelson, >There is another way that is probably more efficient than >regular expressions for this. It also may be more understandable >when you look at the code: > >while(<>){ > substr($_,0,10) =~ tr/()/ / >} >continue{ > print STDOUT >} > >It only performs the tr on the first 10 >characters. > >all the best, >david >At 05:00 PM 2/13/02 -0700, Nelson Ingersoll wrote: > >Greetings Fellow Mongers, > > > > I have a string which may, or may not, have parenthesis somewhere in > >the first 10 characters. The string is always longer than 10 > >characters. I want to substitute space for either "(" or ")" or > >both. Because that part of the string which beyond the tenth character is > >descriptive text, I dare not change any parenthesis after the first 10 > >characters. I understand the regex {$x =~ s/\(|\)/ /g;} matches any and > >all occurrences of either the '(' or ')' characters and replaces any '(' or > >')' with a space. > > > > The issue is, can I force the substitution, "s/\(|\)/ /g", to only work > >over the first 10 characters of $x rather than all characters? Is this > >possible in a regex? If not, I can always sub-string wing it. > > > > Your thoughts will be appreciated! > > > >- Nelson ... > > > >===================================================================== > >Nelson E. Ingersoll <> Sr. Principal Software Grunt > >--------------------------------------------------------------------- > >ATMEL Corporation <> Desk: 719-540-1263 > >Mail Stop 10240 <> FAX: 719-540-6998 > >1150 E. Cheyenne Mtn Blvd. <> Pager: 719-921-7917 > >Colorado Springs, CO 80906 <> INTERNET: ningersoll@cso.atmel.com > >United States of America <> ningersoll@codenet.net > >================== No good deed goes unpunished! ==================== > > > > From william.l.lewis at usa.net Tue Feb 26 13:25:30 2002 From: william.l.lewis at usa.net (bill lewis) Date: Thu Aug 5 00:18:08 2004 Subject: OO Perl Message-ID: <20020226192530.2815.qmail@cpdvg202.cms.usa.net> Hi all, Long time lurker, first time poster. I was wondering if anyone can point out a decent resource to learn OO perl? Or do I just need to flail around learning it? thanks, Bill Lewis From ssmythe at docent.com Tue Feb 26 13:29:08 2002 From: ssmythe at docent.com (Steve Smythe) Date: Thu Aug 5 00:18:08 2004 Subject: OO Perl Message-ID: Conway's "Object Oriented PERL" is great. I really enjoyed it. http://shop.barnesandnoble.com/booksearch/isbnInquiry.asp?isbn=1884777791 Steve -----Original Message----- From: bill lewis [mailto:william.l.lewis@usa.net] Sent: Tuesday, February 26, 2002 11:26 AM To: pikes-peak-pm-list@happyfunball.pm.org Subject: OO Perl Hi all, Long time lurker, first time poster. I was wondering if anyone can point out a decent resource to learn OO perl? Or do I just need to flail around learning it? thanks, Bill Lewis From nbehkami at lsil.com Tue Feb 26 13:38:15 2002 From: nbehkami at lsil.com (Nima Behkami) Date: Thu Aug 5 00:18:08 2004 Subject: OO Perl In-Reply-To: <20020226192530.2815.qmail@cpdvg202.cms.usa.net> Message-ID: <001001c1befd$22b1de50$041f10ac@nagr9hern> Hi Bill, I recommend "OO Perl by Damian Conway", it is easy to read and very informational; also easy to skip through subjects. If you are new to OO, it would be best to use a generic OO/UML book along with any OO Perl book. Nima -----Original Message----- From: owner-colorado-springs-pm-list@pm.org [mailto:owner-colorado-springs-pm-list@pm.org]On Behalf Of bill lewis Sent: Tuesday, February 26, 2002 11:26 AM To: pikes-peak-pm-list@happyfunball.pm.org Subject: OO Perl Hi all, Long time lurker, first time poster. I was wondering if anyone can point out a decent resource to learn OO perl? Or do I just need to flail around learning it? thanks, Bill Lewis