From belman at subdimension.com Sat Jul 1 02:27:44 2000 From: belman at subdimension.com (Belgarion) Date: Wed Aug 4 00:05:10 2004 Subject: TPC anyone? Message-ID: <20000701002744.A297@wooble> On Fri, 30 Jun 2000 12:57:10 Daniel Chetlin wrote: > After enjoying myself immensely at YAPC, I've decided that I have to go to > TPC. Since the conference fee itself is so high (major drawback of being a > consultant: no employer to pay your entry fee) I'm looking for ways to cut > costs in airfare and hotel stay. Wow.. all this time I thought I was the only member on this list. :) Are there meetings, etc to attend? Anyone know of any conferences/seminars that are going to be in the oregon/washington area anytime soon? Erik Hollensbe TIMTOWTDI From merlyn at stonehenge.com Sat Jul 1 02:38:00 2000 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Wed Aug 4 00:05:10 2004 Subject: TPC anyone? In-Reply-To: Belgarion's message of "Sat, 1 Jul 2000 00:27:44 -0700" References: <20000701002744.A297@wooble> Message-ID: >>>>> "Belgarion" == Belgarion writes: Belgarion> Are there meetings, etc to attend? Anyone know of any Belgarion> conferences/seminars that are going to be in the Belgarion> oregon/washington area anytime soon? Well, you asked, so I can say that 7/24-7/26 I'll be teaching "Learning Perl" at OGI, and 7/27-7/28 will be "Packages, References, Objects, and Modules". Details at cpd.ogi.edu. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! TIMTOWTDI From dmcnulty at xprt.net Sun Jul 2 21:03:05 2000 From: dmcnulty at xprt.net (Dennis McNulty) Date: Wed Aug 4 00:05:10 2004 Subject: Looking for a local ISP Message-ID: <000a01bfe492$d4b12300$547e66d1@wins.bpa.gov> My current provider doesn't allow any scripting of personal Web directories and doesn't offer Web hosting. I'd like to find a (cheap) ISP that allows CGI/perl scripting, and if possible, doesn't require you to buy a domain. Any recommendations? - Dennis McNulty -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/pdx-pm-list/attachments/20000702/8ed4dc59/attachment.htm From merlyn at stonehenge.com Sun Jul 2 22:38:37 2000 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Wed Aug 4 00:05:10 2004 Subject: Looking for a local ISP In-Reply-To: "Dennis McNulty"'s message of "Sun, 2 Jul 2000 19:03:05 -0700" References: <000a01bfe492$d4b12300$547e66d1@wins.bpa.gov> Message-ID: >>>>> "Dennis" == Dennis McNulty writes: Dennis> My current provider doesn't allow any scripting of personal Dennis> Web directories and doesn't offer Web hosting. I'd like to Dennis> find a (cheap) ISP that allows CGI/perl scripting, and if Dennis> possible, doesn't require you to buy a domain. Any Dennis> recommendations? Check out... -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! TIMTOWTDI From rs at oregonnet.com Mon Jul 3 16:05:02 2000 From: rs at oregonnet.com (Richard Soderberg) Date: Wed Aug 4 00:05:10 2004 Subject: Looking for a local ISP In-Reply-To: <000a01bfe492$d4b12300$547e66d1@wins.bpa.gov> Message-ID: I've found one that would support CGI and mod_perl ~homedir scripting; are you still interested? Server: Apache/1.3.12 (Unix) mod_perl/1.22 mod_ssl/2.6.3 OpenSSL/0.9.5 R. On Sun, 2 Jul 2000, Dennis McNulty wrote: > My current provider doesn't allow any scripting of personal Web > directories and doesn't offer Web hosting. I'd like to find a > (cheap) ISP that allows CGI/perl scripting, and if possible, doesn't > require you to buy a domain. > > Any recommendations? > > - Dennis McNulty > > TIMTOWTDI From jasona at inetarena.com Fri Jul 7 13:32:44 2000 From: jasona at inetarena.com (Jason Annin-White) Date: Wed Aug 4 00:05:10 2004 Subject: Looking for a local ISP In-Reply-To: <000a01bfe492$d4b12300$547e66d1@wins.bpa.gov> Message-ID: internet arena (inetarena.com) in downtown Portland has shell accounts available, they're about $20/month and are a pretty good ISP. Jason White On Sun, 2 Jul 2000, Dennis McNulty wrote: > My current provider doesn't allow any scripting of personal Web directories and doesn't offer Web hosting. I'd like to find a (cheap) ISP that allows CGI/perl scripting, and if possible, doesn't require you to buy a domain. > > Any recommendations? > > - Dennis McNulty > > TIMTOWTDI From scholarships at erols.com Thu Jul 20 15:09:54 2000 From: scholarships at erols.com (scholarships@erols.com) Date: Wed Aug 4 00:05:10 2004 Subject: Tuition-Free Computer and IT Training for Non-Profit Employees Message-ID: <615.624548.839579@yahoo.com> Tuition-Free Computer and IT Training for Non-Profit Employees Dear Non-Profit Employee, Most non-profit employees want to improve their computer skills. However, high cost of training and a busy schedule have held them back. Now, the National Education Foundation (NEF) CyberLearning, a non-profit organization, dedicated to bridging the "Digital Divide," offers the Nation's non-profit employees a unique opportunity. With the support of Microsoft and others, NEF CyberLearning is now able to offer full tuition scholarships of $2,000 to the first 10,000 applicants, thus enabling them to take any or all of the 400+ Internet-based online personal computing and computer professional courses from anywhere at any time. The high-quality, user-friendly courses are either self-study or instructor-led. They cover all levels and almost all topics, including Computer Basics, Internet Basics, Web Design Basics, Networking Basics, Programming Basics, A+, Network+, MCSE, CNE, Microsoft Office, MOUS, WordPerfect, Lotus, Operating Systems, Windows, Windows 2000, Linux, Unix, Networking, WAN, LAN, Programming, Java, C++, Visual Basics, Internet, Web Design, Web Applications, Web Master, E-commerce, Databases, Oracle and Cisco. To sign up, just visit www.cyberlearning.org, click on "Free IT Training," complete the application and pay a nominal registration fee of $75 with an organization/personal credit card. This $75 is your only cost, since the tuition is free for you. Many non-profit organizations reimburse the $75. You can receive immediate access to all 400+ online courses, an online library of the latest 1,000+ computer/information technology books, instructor assistance, course-specific chat areas and round the clock technical support. Please feel free to forward this information to interested colleagues and others in non-profit organizations. If your department or division wants to sign up a group of employees, please indicate so in your reply and provide contact information. If you received this e-mail, it is because you are listed as a contact person or employee of a non-profit organization. If you do not wish to receive any further scholarship information from us, please reply with the message, "remove" in the Subject line. Thank you. The non-profit National Education Foundation (NEF) CyberLearning has provided tuition-free IT training to thousands of students, teachers, government and non-profit employees and disadvantaged individuals. It has earned many distinctions including "The Ivy League of IT Training," "1995 Fairfax Human Rights Award Winner," and " A Leader in Bridging the Digital Divide." "You are helping to empower America. I salute you for your ongoing commitment to creating a better America," --- President Clinton "This is an awesome opportunity." --- Washingtonjobs.com "Microsoft is pleased to play a part ... NEF can make a positive difference in the lives of a great number of individuals." --- Microsoft "I have found the CyberLearning online courses to be extremely easy and useful. I liked pre-course self-assessment and IT books online and available 24/7. The course screens were interactive and made me feel as if I was in the application itself. The site looks and feels very professional. The list of courses is huge. It includes something for almost everyone. I find this to be a very worthy cause." --- Ken Horowitz, IT Training Coordinator. TIMTOWTDI From todd_caine at eli.net Mon Jul 24 15:44:07 2000 From: todd_caine at eli.net (Todd Caine) Date: Wed Aug 4 00:05:10 2004 Subject: Let the party begin... Message-ID: <397CAA97.8D5B6D9B@eli.net> We need to start a campaign to get a larger member base. Here is a simple slogan. Any other ideas.... join ' ', qw/Portland Perl Mongers/; ps. Great website (http://pdx.pm.org) (not) TIMTOWTDI From karic at lclark.edu Mon Jul 24 16:21:35 2000 From: karic at lclark.edu (Kari Chisholm) Date: Wed Aug 4 00:05:10 2004 Subject: Let the party begin... References: <397CAA97.8D5B6D9B@eli.net> Message-ID: <397CB35F.9E33AF21@lclark.edu> I'm rather biased in favor of your subject line. Perhaps with this edit: Portland Perl Mongers: Let the party begin... Perhaps, instead: Portland Perl Mongers: Friends Don't Let Friends Code C. Or, alternatively: Portland Perl Mongers: Because Perl Rules. On second thought, that last one sucks. Tactically speaking, you should check out www.pint.org. -kari. -- Kari Chisholm Creative Director for New Media Lewis & Clark College Portland, Oregon http://www.lclark.edu Todd Caine wrote: > > We need to start a campaign to get a larger member base. > Here is a simple slogan. Any other ideas.... > > join ' ', qw/Portland Perl Mongers/; > > ps. Great website (http://pdx.pm.org) (not) > TIMTOWTDI TIMTOWTDI From todd_caine at eli.net Mon Jul 24 16:26:14 2000 From: todd_caine at eli.net (Todd Caine) Date: Wed Aug 4 00:05:10 2004 Subject: [Fwd: Let the party begin...] Message-ID: <397CB476.751E0431@eli.net> This one was pretty slick! Ciao, Odd, otherwise know as Todd -------------- next part -------------- An embedded message was scrubbed... From: Jerome Subject: Re: Let the party begin... Date: Mon, 24 Jul 2000 14:19:03 -0700 Size: 1183 Url: http://mail.pm.org/archives/pdx-pm-list/attachments/20000724/654046e7/attachment.eml From kellert at ohsu.edu Mon Jul 24 16:29:16 2000 From: kellert at ohsu.edu (Tom Keller) Date: Wed Aug 4 00:05:10 2004 Subject: gnu c compiler headers and lib files Message-ID: Greetings perlmongers, To upgrade to Perl-5.6, I needed a c compiler. So I recently installed gcc-2.95.2 from the SGI freeware site. It expects to find various header and lib files that are reputed to be on the Development Foundation CD that comes with the IRIX6.5 installation. I can't seem to find them. Does any one have a suggestion for where to get the files needed to make gcc-2.95.2 on an O2 running IRIX 6.5? Thanks, Tom Keller Thomas J. Keller, Ph.D. Oregon Health Sciences University MMI Core Facility 503-494-2442 kellert@ohsu.edu http://www.ohsu.edu/core TIMTOWTDI From sarah at pound.perl.org Mon Jul 24 16:30:26 2000 From: sarah at pound.perl.org (Sarah Burcham) Date: Wed Aug 4 00:05:10 2004 Subject: Let the party begin... In-Reply-To: <397CB35F.9E33AF21@lclark.edu>; from karic@lclark.edu on Mon, Jul 24, 2000 at 02:21:35PM -0700 References: <397CAA97.8D5B6D9B@eli.net> <397CB35F.9E33AF21@lclark.edu> Message-ID: <20000724163026.A18475@pound.perl.org> Or even.. Portland Perl Mongers: microbrew++ Portland Perl Mongers: Did you know Randal's a published author? Portland Perl Mongers: Schwern was here Portland Perl Mongers: We're not in Missouri anymore... -sarah # stlouis.pm.org TIMTOWTDI From todd_caine at eli.net Mon Jul 24 17:08:49 2000 From: todd_caine at eli.net (Todd Caine) Date: Wed Aug 4 00:05:10 2004 Subject: Let the party begin... References: <397CAA97.8D5B6D9B@eli.net> Message-ID: <397CBE71.E21FF071@eli.net> Here is another version of my original that UA came up with: join ' ', qw/Portland Perl Mongers/ or die; or how about: join '', 'Portland Perl Mongers' for @enlightenment; -- Cheers, Todd ps. Strange things are afoot at the Circle K. TIMTOWTDI From phat at eoni.com Mon Jul 24 17:14:44 2000 From: phat at eoni.com (Jason Wilcox) Date: Wed Aug 4 00:05:10 2004 Subject: Let the party begin... In-Reply-To: <397CB35F.9E33AF21@lclark.edu> Message-ID: We could always steal from the ActiveState bumper sticker and have it say "Portland Perl Mongers: If you don't know perl you don't know dick" although that may be a little harsh for a recruitment drive. ------------------------------------------------------ Jason Wilcox - EONI Technical Support rtc@eoni.com Rural Telecom Company ===================== E-mail: rtc@eoni.com Web Site: http://www.rtcinet.com Phone: 564-2059, 888-564-5302 ------------------------------------------------------ TIMTOWTDI From cribbins at agalis.net Mon Jul 24 18:26:03 2000 From: cribbins at agalis.net (Michael Cribbins) Date: Wed Aug 4 00:05:10 2004 Subject: Let the party begin... References: <397CAA97.8D5B6D9B@eli.net> <397CBE71.E21FF071@eli.net> Message-ID: <397CD08B.F0B2CCF@agalis.net> How about: Portland Perl Mongers: if you've got the time, we've got the beer. -Michael Todd Caine wrote: > > Here is another version of my original that UA came up with: > > join ' ', qw/Portland Perl Mongers/ or die; > > or how about: > > join '', 'Portland Perl Mongers' for @enlightenment; > > -- > Cheers, > Todd > > ps. Strange things are afoot at the Circle K. > TIMTOWTDI TIMTOWTDI From jeff at vpservices.com Tue Jul 25 13:24:13 2000 From: jeff at vpservices.com (Jeff Zucker) Date: Wed Aug 4 00:05:10 2004 Subject: Let the party begin... References: <397CAA97.8D5B6D9B@eli.net> <397CBE71.E21FF071@eli.net> <397CD08B.F0B2CCF@agalis.net> Message-ID: <397DDB4D.90A0BFE1@vpservices.com> Well, since I just created a new hammer called DBD::RAM and its soon to be released tied-hash cousin AnyData.pm, everything looks like a nail to me. Here's some code (that actually runs) for the PDX crowd: use AnyData; my %perl_mongers = AnyData::tie_db({ data_source => , data_type => 'XML', }); print %perl_mongers{pdx}->{motto}; __END__ TMTOWTDI-BOOWTPW There's more than one way to do it - but only one way to pronounce Willamette <397CBE71.E21FF071@eli.net> <397CD08B.F0B2CCF@agalis.net> <397DDB4D.90A0BFE1@vpservices.com> Message-ID: >>>>> "Jeff" == Jeff Zucker writes: Jeff> print %perl_mongers{pdx}->{motto}; Gotta love that illegal syntax that isn't caught by the compiler. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! TIMTOWTDI From jeff at vpservices.com Tue Jul 25 14:10:22 2000 From: jeff at vpservices.com (Jeff Zucker) Date: Wed Aug 4 00:05:10 2004 Subject: Let the party begin... References: <397CAA97.8D5B6D9B@eli.net> <397CBE71.E21FF071@eli.net> <397CD08B.F0B2CCF@agalis.net> <397DDB4D.90A0BFE1@vpservices.com> Message-ID: <397DE61E.B7C55617@vpservices.com> $perl_mongers{pdx}->{local_diety} "Randal L. Schwartz" wrote: > > >>>>> "Jeff" == Jeff Zucker writes: > > Jeff> print %perl_mongers{pdx}->{motto}; > > Gotta love that illegal syntax that isn't caught by the compiler. :) Duh, $perl_mongers. I cut and pasted in the wrong direction :-). First I wrote the letter to pdx.pm, then I wrote the XML part of the module that would execute the code in the letter just to see if I could do it, then I cut the code from the letter and pasted it into my program, tested it (and replaced the % which, of course, *was* caught by the compiler), then went to bed since it was 3 am, then sent the letter to y'all this morning without remembering to make the correction in the letter. Duh, sorry. -- Jeff TIMTOWTDI From karic at lclark.edu Thu Jul 27 13:28:24 2000 From: karic at lclark.edu (Kari Chisholm) Date: Wed Aug 4 00:05:11 2004 Subject: Regex stumper? Message-ID: <39807F48.EA368DBF@lclark.edu> Alright, this may be a moron question, but I can't figure it out. I'm trying to take a long string of text like this: Email me at karic@lclark.edu, or at wwwadmin@lclark.edu, dude. And, make it output this: Email me at karic@lclark.edu, or at wwwadmin@lclark.edu, dude. My code-snippet is this: $text = "Email me at karic\@lclark.edu, or at wwwadmin\@lclark.edu, dude."; while ($text =~ /\s([\w\-]+\@[\w\-]+\.[\w\-]+)\B/) { $link = $1; print "$link\n"; while ($link !~ /\w$/) { $link = substr ($link,0,length($link)-1); print "$link\n"; } $text =~ s/$link/$link<\/a>/; } print $text; The problem is that the output looks like this: Email me at karic@lclark.edu, or at wwwadmin@lclark.edu, dude. How come the final [\w\-] doesn't match the u in edu? I'm stumped. -kari. -- Kari Chisholm Creative Director for New Media Lewis & Clark College Portland, Oregon http://www.lclark.edu TIMTOWTDI From merlyn at stonehenge.com Thu Jul 27 14:05:03 2000 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Wed Aug 4 00:05:11 2004 Subject: Regex stumper? In-Reply-To: Kari Chisholm's message of "Thu, 27 Jul 2000 11:28:24 -0700" References: <39807F48.EA368DBF@lclark.edu> Message-ID: >>>>> "Kari" == Kari Chisholm writes: Kari> while ($text =~ /\s([\w\-]+\@[\w\-]+\.[\w\-]+)\B/) ... Kari> or at wwwadmin@lclark.edu, dude. ... Kari> How come the final [\w\-] doesn't match the u in edu? \B says you need a non-word boundary after the \w or \-. So it matches "ed" and then needs to have another letter after d, outside the match, hence the "u" must stay out of the match. Why is that \B there? Did you want \b instead? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! TIMTOWTDI From ben_a_marcotte at yahoo.com Thu Jul 27 14:06:49 2000 From: ben_a_marcotte at yahoo.com (Ben Marcotte) Date: Wed Aug 4 00:05:11 2004 Subject: Regex stumper? Message-ID: <20000727190649.7691.qmail@web514.mail.yahoo.com> I think you need \b instead of \B. \B matches _except_ at a word boundry and would match the last character of a word. Since it matches but is not retained for the replacement (i.e. it doesn't have parentheses around it), it gets "removed". Here's the code I would suggest: $text = "Email me at karic\@lclark.edu, or at wwwadmin\@lclark.edu, dude."; $text =~ s#\b([\w\-]+\@[\w\-]+\.[\w\-]+)\b#$1#g; print $text; Which includes the following changes: 1) Changed the leading \s to a more symetrical \b. 2) Put a g (global replace) at the end, so you don't need a while loop. 3) Used # instead of / in the s/// expression so that we don't need to escape the / in (not a big deal here but handy for bigger HTML chunks). 4) Put quotes around the mailto:. Not a perl suggestion but a good HTML one. 5) Made it look like a highly efficient, but completely unreadable spew of line noise, but that's half the fun of perl regexes! --- Kari Chisholm wrote: > > Alright, this may be a moron question, but I can't figure it out. I'm > trying to take a long string of text like this: > > Email me at karic@lclark.edu, or at wwwadmin@lclark.edu, dude. > > And, make it output this: > > Email me at karic@lclark.edu, or > at wwwadmin@lclark.edu, dude. > > My code-snippet is this: > > $text = "Email me at karic\@lclark.edu, or at wwwadmin\@lclark.edu, > dude."; > > while ($text =~ /\s([\w\-]+\@[\w\-]+\.[\w\-]+)\B/) > { > $link = $1; > print "$link\n"; > while ($link !~ /\w$/) > { > $link = substr ($link,0,length($link)-1); > print "$link\n"; > } > $text =~ s/$link/$link<\/a>/; > } > > print $text; > > The problem is that the output looks like this: > > Email me at karic@lclark.edu, > or at wwwadmin@lclark.edu, dude. > > How come the final [\w\-] doesn't match the u in edu? > > I'm stumped. > > -kari. > > -- > Kari Chisholm > Creative Director for New Media > Lewis & Clark College > Portland, Oregon > http://www.lclark.edu > TIMTOWTDI ===== --------------------------------------- Ben Marcotte --------------------------------------- __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ TIMTOWTDI From karic at lclark.edu Thu Jul 27 15:39:08 2000 From: karic at lclark.edu (Kari Chisholm) Date: Wed Aug 4 00:05:11 2004 Subject: Regex stumper? References: <20000727190649.7691.qmail@web514.mail.yahoo.com> Message-ID: <39809DEC.524C3F2@lclark.edu> Thanks. Your one-liner is very helpful. The reason I led off with the \s instead of a more symmetrical \b is to be able to match these bare emails (and convert them to mailto href's), but to leave untouched any mailto's that are already hand-coded in the text. The problem, then, is that there has to be a leading space in the text I'm evaluating. If it's $text = "karic\@lclark.edu is my email address."; then it doesn't match with the leading \s. \b would solve the problem, but then it converts this: Email me here. into this Email me karic@lclark.edu>here. And that's no good. Any suggestions? -kari. Ben Marcotte wrote: > > I think you need \b instead of \B. \B matches _except_ at a word boundry and > would match the last character of a word. Since it matches but is not retained > for the replacement (i.e. it doesn't have parentheses around it), it gets > "removed". Here's the code I would suggest: > > $text = "Email me at karic\@lclark.edu, or at wwwadmin\@lclark.edu, dude."; > $text =~ s#\b([\w\-]+\@[\w\-]+\.[\w\-]+)\b#$1#g; > print $text; > > Which includes the following changes: > 1) Changed the leading \s to a more symetrical \b. > 2) Put a g (global replace) at the end, so you don't need a while loop. > 3) Used # instead of / in the s/// expression so that we don't need to escape > the / in (not a big deal here but handy for bigger HTML chunks). > 4) Put quotes around the mailto:. Not a perl suggestion but a good HTML one. > 5) Made it look like a highly efficient, but completely unreadable spew of line > noise, but that's half the fun of perl regexes! > > --- Kari Chisholm wrote: > > > > Alright, this may be a moron question, but I can't figure it out. I'm > > trying to take a long string of text like this: > > > > Email me at karic@lclark.edu, or at wwwadmin@lclark.edu, dude. > > > > And, make it output this: > > > > Email me at karic@lclark.edu, or > > at wwwadmin@lclark.edu, dude. > > > > My code-snippet is this: > > > > $text = "Email me at karic\@lclark.edu, or at wwwadmin\@lclark.edu, > > dude."; > > > > while ($text =~ /\s([\w\-]+\@[\w\-]+\.[\w\-]+)\B/) > > { > > $link = $1; > > print "$link\n"; > > while ($link !~ /\w$/) > > { > > $link = substr ($link,0,length($link)-1); > > print "$link\n"; > > } > > $text =~ s/$link/$link<\/a>/; > > } > > > > print $text; > > > > The problem is that the output looks like this: > > > > Email me at karic@lclark.edu, > > or at wwwadmin@lclark.edu, dude. > > > > How come the final [\w\-] doesn't match the u in edu? > > > > I'm stumped. > > > > -kari. > > > > -- > > Kari Chisholm > > Creative Director for New Media > > Lewis & Clark College > > Portland, Oregon > > http://www.lclark.edu > > TIMTOWTDI > > ===== > --------------------------------------- > Ben Marcotte > --------------------------------------- > > __________________________________________________ > Do You Yahoo!? > Kick off your party with Yahoo! Invites. > http://invites.yahoo.com/ -- Kari Chisholm Creative Director for New Media Lewis & Clark College Portland, Oregon http://www.lclark.edu TIMTOWTDI From kellert at ohsu.edu Thu Jul 27 17:55:35 2000 From: kellert at ohsu.edu (Tom Keller) Date: Wed Aug 4 00:05:11 2004 Subject: Error code 1 Message-ID: Greetings, Still trying to install perl-5.6.0 on IRIX6.5 (6.5.6m). I think I've got my gnu c compiler working but when I ran "make" it ended with *** Error code 1 (bu21) Any suggestions? Thanks in advance, Tom Keller Thomas J. Keller, Ph.D. Oregon Health Sciences University MMI Core Facility 503-494-2442 kellert@ohsu.edu http://www.ohsu.edu/core TIMTOWTDI From ben_a_marcotte at yahoo.com Thu Jul 27 18:24:27 2000 From: ben_a_marcotte at yahoo.com (Ben Marcotte) Date: Wed Aug 4 00:05:11 2004 Subject: Regex stumper? Message-ID: <20000727232427.3375.qmail@web512.mail.yahoo.com> I learn something new everyday. Apparently, somewhere between the publishing of the 2nd Ed Camel book and a recent version of perl (5.005_03), a handy regex piece was added: the negative lookbehind assertion, (?here, dude."; $text =~ s#(?$1#g; print $text; Which for me produced: karic@lclark.edu is my address. Email me there, or at wwwadmin@lclark.edu, but not at here, dude. --- Kari Chisholm wrote: > > Thanks. Your one-liner is very helpful. > > The reason I led off with the \s instead of a more symmetrical \b is to > be able to match these bare emails (and convert them to mailto href's), > but to leave untouched any mailto's that are already hand-coded in the > text. > > The problem, then, is that there has to be a leading space in the text > I'm evaluating. If it's > > $text = "karic\@lclark.edu is my email address."; > > then it doesn't match with the leading \s. \b would solve the problem, > but then it converts this: > > Email me here. > > into this > > Email me href=mailto:"karic@lclark.edu">karic@lclark.edu>here. > > And that's no good. > > Any suggestions? > > -kari. ===== --------------------------------------- Ben Marcotte --------------------------------------- __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ TIMTOWTDI From ben_a_marcotte at yahoo.com Thu Jul 27 18:24:27 2000 From: ben_a_marcotte at yahoo.com (Ben Marcotte) Date: Wed Aug 4 00:05:11 2004 Subject: Regex stumper? Message-ID: <20000727232427.3375.qmail@web512.mail.yahoo.com> I learn something new everyday. Apparently, somewhere between the publishing of the 2nd Ed Camel book and a recent version of perl (5.005_03), a handy regex piece was added: the negative lookbehind assertion, (?here, dude."; $text =~ s#(?$1#g; print $text; Which for me produced: karic@lclark.edu is my address. Email me there, or at wwwadmin@lclark.edu, but not at here, dude. --- Kari Chisholm wrote: > > Thanks. Your one-liner is very helpful. > > The reason I led off with the \s instead of a more symmetrical \b is to > be able to match these bare emails (and convert them to mailto href's), > but to leave untouched any mailto's that are already hand-coded in the > text. > > The problem, then, is that there has to be a leading space in the text > I'm evaluating. If it's > > $text = "karic\@lclark.edu is my email address."; > > then it doesn't match with the leading \s. \b would solve the problem, > but then it converts this: > > Email me here. > > into this > > Email me href=mailto:"karic@lclark.edu">karic@lclark.edu>here. > > And that's no good. > > Any suggestions? > > -kari. ===== --------------------------------------- Ben Marcotte --------------------------------------- __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ TIMTOWTDI From danchetlin at yahoo.com Thu Jul 27 20:30:37 2000 From: danchetlin at yahoo.com (Daniel Chetlin) Date: Wed Aug 4 00:05:11 2004 Subject: Regex stumper? In-Reply-To: <20000727232427.3375.qmail@web512.mail.yahoo.com>; from ben_a_marcotte@yahoo.com on Thu, Jul 27, 2000 at 04:24:27PM -0700 References: <20000727232427.3375.qmail@web512.mail.yahoo.com> Message-ID: <20000727183036.A2495@ilmd.chetlin.org> On Thu, Jul 27, 2000 at 04:24:27PM -0700, Ben Marcotte wrote: > > I learn something new everyday. Apparently, somewhere between the > publishing of the 2nd Ed Camel book and a recent version of perl (5.005_03), > a handy regex piece was added: the negative lookbehind assertion, > (? length) can _not_ be found before some other piece of regex. Thus we can > check for the lack of a mailto: before an address. However, you might need > a recent version of perl to do this. Does anyone out there actually know > which version of perl first supported this feature? It appeared in 5.005 (perldoc perl5005delta). One of Ilya's ingenious additions. > s#(?$1#g; This is very nice; I hadn't considered using the 'mailto'. My solution takes a slightly different tack; it assumes that you want to make the substitution on any address outside of an HTML tag, and on none inside of one. This is not necessarily the best assumption to make, but since we're already making some shaky assumptions about the way email addresses and HTML are formatted (see Jeff Friedl's "Mastering Regular Expressions" if you really want to match an email address), I think it's probably OK. And it doesn't use lookbehind, so it's usable on older Perls. s{ \b([-\w]+@[-\w]+\.[-\w]+)\b #The address part, a little cleaner (?! #Negative lookahead: not followed by [^<>]* #Any number of non angle brackets > #and then a right angle bracket ) #In other words, we're not inside an HTML tag }{$1}gx; This one runs into problems if you have badly formatted HTML, of course. So why use it? If you're using a Perl below 5.005 (but at least 5.000), if you want to avoid other embedded addresses than just mailto anchors, or if you're playing Perl golf (the change from lookbehind to lookahead saves one character, and the other minor changes I made save a few more -- obviously after you cut out the /x stuff) ;-). Dunno if this is helpful, but it was fun. -dlc TIMTOWTDI