From chicks at chicks.net Wed Jan 3 14:00:20 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Perl 5.6 dbm Message-ID: I'm having dbm problems with Perl 5.6 under Red Hat 7.0. Had anybody tried this? Are there any good solutions? I've looked around the web a bit for a solution and nothing has popped up. If I have to I'll retrograde back to Perl 5.005. (Otherwise I've been happy with RH70 respin.) -- Those who cannot remember the past are doomed to buy Microsoft products. From jeff at alanne.com Wed Jan 3 14:03:55 2001 From: jeff at alanne.com (Jeff Duffy) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Perl 5.6 dbm In-Reply-To: References: Message-ID: <01010315035500.12607@cairhien> On Wednesday 03 January 2001 15:00, you wrote: > I'm having dbm problems with Perl 5.6 under Red Hat 7.0. Had anybody > tried this? Are there any good solutions? I just did some coding with 5.6/dbm (gdbm and Berkeley db) last month on RH7. Which dbm, and what problems? Jeff -- Errors have occurred. We won't tell you where or why. Lazy programmers. -- Hacking haiku From chicks at chicks.net Thu Jan 4 12:58:32 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Perl 5.6 dbm In-Reply-To: <01010315035500.12607@cairhien> Message-ID: On Wed, 3 Jan 2001, Jeff Duffy wrote: > I just did some coding with 5.6/dbm (gdbm and Berkeley db) last month > on RH7. Which dbm, and what problems? I've got a script that worked perfectly fine under RH6.1 to let people relay mail that have successfully pop'd email. It's the classic poprelayd with a few tweaks to the regexes so it's Red Hat happy. So, my friend Wolf upgrades his server to RH7.0 since it's seemed pretty stable in tests of my own and a couple others in the local community. But poprelayd is now breaking. I don't think poprelayd is the source of the problem because dbmmanage has the same problem: [root@dakota bin]# dbmmanage /etc/mail/access view Can't tie /etc/mail/access: at /usr/bin/dbmmanage line 202. poprelayd has the same sorts of problems: [root@dakota bin]# poprelayd -a 205.166.143.1 Can't open /etc/mail/popip [] (No such file or directory) at /usr/local/bin/poprelayd line 87. Here are the relevant lines: ... sub opendb_read { tie(%db, "DB_File", $dbfile, O_RDONLY, 0, $$dbtype) or die "Can't open $dbfile"; } sub opendb_write { # tie(%db, "DB_File", $dbfile, O_RDWR|O_EXLOCK, 0, $$dbtype) ||\ my $ret = tie(%db, "DB_File", $dbfile, O_RDWR|O_EXCL, 0, $$dbtype); die "Can't open $dbfile [$ret] ($!)" unless $ret; } ... I've updated to the latest and greatest RPM's: glibc-2.2-9 perl-5.6.0-9 gdbm-1.8.0-5 db1-1.85-4 gdbm-devel-1.8.0-5 db3-3.1.14-6 db2-2.4.14-4 Any suggestions, directions, places to search, etc. would be appreciated. We've got a temporary work around, but I'm relaying much bigger sections of the universe than I'd like. -- Those who cannot remember the past are doomed to buy Microsoft products. From jeff at alanne.com Thu Jan 4 13:07:07 2001 From: jeff at alanne.com (Jeff Duffy) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Perl 5.6 dbm In-Reply-To: References: Message-ID: <01010414070700.01685@cairhien> On Thursday 04 January 2001 13:58, you wrote: > On Wed, 3 Jan 2001, Jeff Duffy wrote: > > I just did some coding with 5.6/dbm (gdbm and Berkeley db) last > > month on RH7. Which dbm, and what problems? > > I've got a script that worked perfectly fine under RH6.1 to let > people relay mail that have successfully pop'd email. It's the > classic poprelayd with a few tweaks to the regexes so it's Red Hat > happy. So, my friend Wolf upgrades his server to RH7.0 since it's > seemed pretty stable in tests of my own and a couple others in the > local community. But poprelayd is now breaking. I don't think > poprelayd is the source of the problem because dbmmanage has the same > problem: Chris, In a few hours I'll see if I can replicate your problem. Does tie fail to both create new and open existing dbm files? Jeff -- Errors have occurred. We won't tell you where or why. Lazy programmers. -- Hacking haiku From chicks at chicks.net Thu Jan 4 13:13:40 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Perl 5.6 dbm In-Reply-To: <01010414070700.01685@cairhien> Message-ID: On Thu, 4 Jan 2001, Jeff Duffy wrote: > In a few hours I'll see if I can replicate your problem. Does tie > fail to both create new and open existing dbm files? Yes. The /etc/mail/access database was created using the standard sendmail makemap using the becoming-upiquitous /etc/mail/Makefile: ------------cut-------------- all: virtusertable.db access.db domaintable.db mailertable.db %.db : % makemap hash $@ < $< clean: rm -f *.db *~ ------------cut-------------- And those DB's are working with sendmail, but won't open with dbmmanage. I've tried naming the dbm with and without the .db and it hasn't helped. I tried ignoring the error from tie and not surprisingly that didn't help. The most frustrating thing is that errstr (or $! in perlspeak) doesn't get set to anything! Grumble. -- Those who cannot remember the past are doomed to buy Microsoft products. From chicks at chicks.net Fri Jan 5 13:18:35 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] PHP Virus Message-ID: This amuses me. -- Those who cannot remember the past are doomed to buy Microsoft products. ---------- Forwarded message ---------- Date: Fri, 5 Jan 2001 10:46:48 -0500 From: List Manager To: avx-news@avx-listserver.com Subject: AVX-News for 01/05/2001 AVX.COM Newsletter ================== Central Command - Without us, there's no defense. You are receiving this newsletter because you subscribed to the AVX.COM newsletter at http://www.avx.com. This is an open-subscription mailing list. If you do not want to receive this newsletter please see the bottom of this message for instructions on how to remove your e-mail address from this mailing list. Virus Protection for the Real World. If you suspect a virus infection you can download a free time limted, fully functional trial version of AVX Professional antivirus software from http://www.avx.com Visit AVX.COM online http://www.avx.com ================== Central Command Discovers First Virus to Use PHP Scripting Language to Infect Computers PHP.NewWorld Virus represents the first step in a new direction of virus writing in the year 2001 MEDINA, Ohio, January 5, 2001 - Central Command, a leading provider of PC anti-virus software and computer security services, and its partners today announced the discovery of PHP.NewWorld, the first virus using the Hypertext Preprocessor (PHP) scripting language to infect computer systems. PHP (www.php.net) is one of the most popular scripting languages used in the development of e-commerce and heavy content websites. It gained its popularity thanks to its user-friendly programming features, and the incorporation of cross platform compatibility between Windows, Linux, and UNIX environment features included within the language. "Although PHP.NewWorld is currently not a major threat, it marks a new step toward new virus generation," said Steven Sundermeier, Product Manager at Central Command, Inc. The PHP programming language has become a standard in dynamic website development. A majority of websites that incorporate user interaction and personalization rely on PHP, making it an appealing target for virus writers. "Because the PHP language is absolutely free, we are anticipating that copycats of this PHP script virus will become prominent and will have much more damaging consequences in the near future," concluded Sundermeier. PHP.NewWorld is spread to a system when executing an infected script. Description of PHP.NewWorld: Name: PHP.NewWorld Alias: None Detection included in AVX Professional: 2001-01-05 Spreading method: uses PHP script functions Description: PHP.NewWorld looks for .php, .hm, .html or .htt files in the C:\Windows directory. All files found with these extensions will become infected. When a user executes a .php file, the virus body will be executed from an external file and will take full control. In the case that the string "NewWorld.PHP" is identified as already existing, the infection routine will not be launched again. Thus, a file will not get infected twice. PHP.NewWorld has no activation date. The virus is not able to spread out from the infected system. AVX Professional has been updated to detect and remove PHP.NewWorld. A free 30-day trial version may be downloaded from www.avx.com or obtained by contacting Central Command toll-free at 866-2-GET-AVX (866-243-8289). About Central Command: A leader in the anti-virus industry, Central Command, Inc., a privately held company, was founded in 1990 and serves home PC users and industrial, government, financial, education and service firms with virus protection software, services, and information. The company services customers in over 40 countries and is headquartered in Medina, Ohio. Central Command, EVRT, Emergency Virus Response Team are trademarks of Central Command Inc. AVX and AntiVirus eXpert are trademarks of Softwin SRL, Romania. All other trademarks, trade names, and products referenced herein are property of their respective owners. ================== Central Command, Inc. respects your online privacy. You at anytime can easily remove your e-mail address from the AVX-News mailing list by sending an e-mail message To: avx-news-request@avx-listserver.com and in the body of the message include the following replacing "e-mail@domain.com" with your e-mail address. unsubscribe avx-news e-mail@domain.com You will receive a confirmation message about your successful removal from AVX-News. Central Command, PerfectSupport, EVRT, Emergency Virus Response Team, Virus Protection for the Real World, Without us, there's no defense. are trademarks of Central Command Inc. AVX and AntiVirus eXpert are trademarks of Softwin SRL, Romania. All other trademarks, trade name and product names are property of their respective owners. Copyright (C) 2000 Central Command Inc. All rights reserved. From mshivers11 at home.com Sat Jan 6 10:38:30 2001 From: mshivers11 at home.com (Matt Shivers) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Sorting ps list - source code for server and client References: Message-ID: <001501c077ff$1a6b9d80$6401a8c0@nwptn1.va.home.com> Hello all, Chris... Thanks a bunch for the ps list sort solution. It worked like a charm. I only had to modify the line: return $a[$pid] <=> $b[$pid]; to return $a[$pid] cmp $b[$pid]; when comparing fields with strings in them. I reviewed each line to figure out what it did, but I couldn't nail down the following line: $copya =~ s/^\s+//; $copyb =~ s/^\s+//; This binds the pattern to the scalars, but what is it accomplishing? Would you shed some light on this? Thanks again, Matt P.S. code snippet: sub pidorder { my $pid = 0; # index into array my $copya = $a; my $copyb = $b; $copya =~ s/^\s+//; $copyb =~ s/^\s+//; my @a = split(/\s+/,$copya,7); my @b = split(/\s+/,$copyb,7); if (0) { my $proca = $a[6]; my $procb = $b[6]; $proca =~ s/\s+/ /g; $procb =~ s/\s+/ /g; print "comparing '$a[$pid]' to '$b[$pid]' ($proca,$procb)\n"; } return $a[$pid] <=> $b[$pid]; } ----- Original Message ----- From: To: Sent: Sunday, November 26, 2000 1:26 PM Subject: Re: [HRPM] Sorting ps list - source code for server and client > On Tue, 21 Nov 2000, Matt Shivers wrote: > > Warning it's a lot of code... > > That's what 'dd' is for. :-) > > I've attached my rewrite of Matt's script. There's a longish comment at > the beginning which contains some minor nits, but the main point was to > demonstrate creating a custom sort routine and I hope you will find this a > decent example. > > -- > > > "Pinky, you've left the lens cap of your mind on again." - The Brain > From chicks at chicks.net Sat Jan 6 11:00:28 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Sorting ps list - source code for server and client In-Reply-To: <001501c077ff$1a6b9d80$6401a8c0@nwptn1.va.home.com> Message-ID: On Sat, 6 Jan 2001, Matt Shivers wrote: > I reviewed each line to figure out what it did, but I couldn't nail > down the following line: > $copya =~ s/^\s+//; $copyb =~ s/^\s+//; > > This binds the pattern to the scalars, but what is it accomplishing? > Would you shed some light on this? It's removing initial white space from the data before comparing it. Otherwise the comparison would see the white space, and it would evaluate to 0. This caused some bewildering results until I figured it out. -- Those who cannot remember the past are doomed to buy Microsoft products. From mshivers11 at home.com Sat Jan 6 15:41:42 2001 From: mshivers11 at home.com (Matt Shivers) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Sorting ps list - source code for server and client References: Message-ID: <000b01c07829$7553eac0$6401a8c0@nwptn1.va.home.com> Cool. Thanks again. Matt ----- Original Message ----- From: To: Sent: Saturday, January 06, 2001 12:00 PM Subject: Re: [HRPM] Sorting ps list - source code for server and client > On Sat, 6 Jan 2001, Matt Shivers wrote: > > > I reviewed each line to figure out what it did, but I couldn't nail > > down the following line: > > $copya =~ s/^\s+//; $copyb =~ s/^\s+//; > > > > This binds the pattern to the scalars, but what is it accomplishing? > > Would you shed some light on this? > > It's removing initial white space from the data before comparing it. > Otherwise the comparison would see the white space, and it would evaluate > to 0. This caused some bewildering results until I figured it out. > > -- > > > Those who cannot remember the past are doomed to buy Microsoft products. > From chicks at chicks.net Sat Jan 6 20:18:53 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Re: 5.6 dbm In-Reply-To: <01010618425306.01297@cairhien> Message-ID: On Sat, 6 Jan 2001, Jeff Duffy wrote: > [jeff@cairhien jeff]$ dbmmanage test.db add testuser testpass > User testuser added with password encrypted to testpass using crypt That seemed to create the dbm just fine. I don't know why. I'm going to look into dbmmanage a little more and see how they add the first entry. But after that poprelayd worked like a champ. Thank you! -- Those who cannot remember the past are doomed to buy Microsoft products. From chicks at chicks.net Sun Jan 7 12:44:25 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Neat Looking Perl Debugger Message-ID: http://world.std.com/~aep/ptkdb/ If anybody plays with it, please let the group know. -- Those who cannot remember the past are doomed to buy Microsoft products. From chicks at chicks.net Sun Jan 7 12:44:54 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Speaker Volunteer Please Message-ID: Do we have any speaker volunteers for our meeting this month? Please. Please. Please. -- Those who cannot remember the past are doomed to buy Microsoft products. From jeff at alanne.com Sun Jan 7 13:04:23 2001 From: jeff at alanne.com (Jeff Duffy) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Speaker Volunteer Please In-Reply-To: References: Message-ID: <0101071404230B.01297@cairhien> On Sunday 07 January 2001 13:44, you wrote: > Do we have any speaker volunteers for our meeting this month? > Please. Please. Please. I may be able to. Any topic suggestions? Jeff -- Errors have occurred. We won't tell you where or why. Lazy programmers. -- Hacking haiku From chicks at chicks.net Sun Jan 7 15:30:28 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Speaker Volunteer Please In-Reply-To: <0101071404230B.01297@cairhien> Message-ID: On Sun, 7 Jan 2001, Jeff Duffy wrote: > On Sunday 07 January 2001 13:44, you wrote: > > Do we have any speaker volunteers for our meeting this month? > > Please. Please. Please. > I may be able to. Any topic suggestions? - Sending e-mail from perl - Net::POP3 - date/time calculations (cookbook chap. 3) - regular expressions -- Those who cannot remember the past are doomed to buy Microsoft products. From cusce at home.com Sun Jan 7 21:45:36 2001 From: cusce at home.com (Collin Cusce') Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Speaker Volunteer Please References: <0101071404230B.01297@cairhien> Message-ID: <002a01c07925$75d491f0$40941718@cx782347a> I'm working on a OS project (for fun only) and really would like to have a rundown of XML::Parser basics. If anyone has done anything with that, I would be much obliged if they would speak on it. - I see stupid people. They're everywhere. They walk around like everyone else. They don't even know they're stupid. ----- Original Message ----- From: "Jeff Duffy" To: Sent: Sunday, January 07, 2001 2:04 PM Subject: Re: [HRPM] Speaker Volunteer Please > On Sunday 07 January 2001 13:44, you wrote: > > Do we have any speaker volunteers for our meeting this month? > > Please. Please. Please. > > I may be able to. Any topic suggestions? > > Jeff > > -- > Errors have occurred. > We won't tell you where or why. > Lazy programmers. > -- Hacking haiku From cusce at home.com Tue Jan 9 20:56:30 2001 From: cusce at home.com (Collin Cusce') Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Meeting Room Message-ID: <009101c07ab0$eff5ccb0$40941718@cx782347a> The room is reserved for the whole year, so remind me next January to re-reserve it if we still want to meet at JLab. Oh, and the entrance will be locked, so I'll remember to stay in the atrium to let 'yawl in. >From now on, I need to register you as my guest at the security desk, so please don't be so late that I have to get out of the meeting to sign the book ;-) . -------------------------------------------------------------- "Both The Rock and Bill Gates are known worldwide for their vast array of catch phrases," --Dwayne "The Rock" Johnson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/norfolk-pm/attachments/20010109/ecae38aa/attachment.htm From chicks at chicks.net Wed Jan 10 19:40:48 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] all topics Message-ID: This is a topic list I had laying around. Suggestions (or people willing to take on a topic) are welcome. DBI mod_perl CGI XML TK/Perl advanced data structures OOP creating/installing modules Win32 (ick.) regular expressions exception handling (carp...) java/perl integration regular expression efficiency tie AUTOLOAD/UNIVERSAL perl internals -- "The number of Unix installations has grown to 10, with more expected." -- The Unix Programmer's Manual, 2nd edition, June '72 From cusce at home.com Wed Jan 10 21:35:41 2001 From: cusce at home.com (Collin Cusce') Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] all topics References: Message-ID: <005d01c07b7f$95f99a00$40941718@cx782347a> OhhOhhOhhhh! Someone PLEASE do Java/Perl integration in the near future. That sounds wicked useful! Not only that, but I'll bet we could get a few more attendees if we do a bit from TWO languages 9-) ! XML still comes first on my priority list, though. -------------------------------------------------------------- "Both The Rock and Bill Gates are known worldwide for their vast array of catch phrases," --Dwayne "The Rock" Johnson ----- Original Message ----- From: To: "HRPM" Sent: Wednesday, January 10, 2001 8:40 PM Subject: [HRPM] all topics > This is a topic list I had laying around. Suggestions (or people willing > to take on a topic) are welcome. > > DBI > mod_perl > CGI > XML > TK/Perl > advanced data structures > OOP > creating/installing modules > Win32 (ick.) > regular expressions > > > exception handling (carp...) > java/perl integration > regular expression efficiency > tie > AUTOLOAD/UNIVERSAL > perl internals > > -- > > > "The number of Unix installations has grown to 10, with more expected." > -- The Unix Programmer's Manual, 2nd edition, June '72 > > > > > > > > From dlehman at hurricanetechgroup.com Thu Jan 11 06:59:42 2001 From: dlehman at hurricanetechgroup.com (Daniel Lehman) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] all topics Message-ID: <20010111125942.7443.cpmta@c017.sfo.cp.net> When is the meeting ....Please On Wed, 10 January 2001, chicks@chicks.net wrote: > > This is a topic list I had laying around. Suggestions (or people willing > to take on a topic) are welcome. > > DBI > mod_perl > CGI > XML > TK/Perl > advanced data structures > OOP > creating/installing modules > Win32 (ick.) > regular expressions > > > exception handling (carp...) > java/perl integration > regular expression efficiency > tie > AUTOLOAD/UNIVERSAL > perl internals > > -- > > > "The number of Unix installations has grown to 10, with more expected." > -- The Unix Programmer's Manual, 2nd edition, June '72 From twebster at pcs.cnu.edu Thu Jan 11 06:59:38 2001 From: twebster at pcs.cnu.edu (Troy E. Webster) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] all topics In-Reply-To: <005d01c07b7f$95f99a00$40941718@cx782347a> Message-ID: I agree with Collin here... ___________________________________________________________________________ ``Beware of bugs in the above code; I have only proved it correct, not tried it.'' -Don Knuth --------------------------------------------------------------------------- On Wed, 10 Jan 2001, Collin Cusce' wrote: > OhhOhhOhhhh! Someone PLEASE do Java/Perl integration in the near future. > That sounds wicked useful! Not only that, but I'll bet we could get a few > more attendees if we do a bit from TWO languages 9-) ! XML still comes first > on my priority list, though. > -------------------------------------------------------------- > > "Both The Rock and Bill Gates are known worldwide for their vast array of > catch phrases," --Dwayne "The Rock" Johnson > > ----- Original Message ----- > From: > To: "HRPM" > Sent: Wednesday, January 10, 2001 8:40 PM > Subject: [HRPM] all topics > > > > This is a topic list I had laying around. Suggestions (or people willing > > to take on a topic) are welcome. > > > > DBI > > mod_perl > > CGI > > XML > > TK/Perl > > advanced data structures > > OOP > > creating/installing modules > > Win32 (ick.) > > regular expressions > > > > > > exception handling (carp...) > > java/perl integration > > regular expression efficiency > > tie > > AUTOLOAD/UNIVERSAL > > perl internals > > > > -- > > > > > > "The number of Unix installations has grown to 10, with more expected." > > -- The Unix Programmer's Manual, 2nd edition, June '72 > > > > > > > > > > > > > > > > > > From chicks at chicks.net Thu Jan 11 10:42:19 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] all topics In-Reply-To: <20010111125942.7443.cpmta@c017.sfo.cp.net> Message-ID: On 11 Jan 2001, Daniel Lehman wrote: > When is the meeting ....Please Jefferson Lab in Newport News. The next meeting is 31 January 7pm. I'll post a meeting announcement within the next week. -- Those who cannot remember the past are doomed to buy Microsoft products. From chicks at chicks.net Thu Jan 11 10:45:09 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] all topics In-Reply-To: <005d01c07b7f$95f99a00$40941718@cx782347a> Message-ID: On Wed, 10 Jan 2001, Collin Cusce' wrote: > OhhOhhOhhhh! Someone PLEASE do Java/Perl integration in the near > future. That sounds wicked useful! Not only that, but I'll bet we > could get a few more attendees if we do a bit from TWO languages 9-) ! I'll add that to my TODO list. I need to write something on that anyway so I should be able to pull off a presentation in the next few months. I think Larry open sourced the stuff he originally did for that as part of the Perl Resource Kit. Somebody has my volume of the Perl Resource Kit that talked about the java integration, but I'll figure something out. > XML still comes first on my priority list, though. Jeff is still mulling over whether an XML presentation this month is feasable. But he's committed to talking about /something/. :-) -- Those who cannot remember the past are doomed to buy Microsoft products. From kernell at sundog.larc.nasa.gov Fri Jan 12 10:22:58 2001 From: kernell at sundog.larc.nasa.gov (Robert Kernell) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] all topics Message-ID: <200101121622.LAA22975@sundog.larc.nasa.gov> A non-text attachment was scrubbed... Name: not available Type: text Size: 1140 bytes Desc: not available Url : http://mail.pm.org/archives/norfolk-pm/attachments/20010112/b6875249/attachment.bat From jeff at alanne.com Sun Jan 21 02:14:09 2001 From: jeff at alanne.com (Jeff Duffy) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Example module. Message-ID: <01012103140902.23477@cairhien> All, Here's a very simple module I whipped up for a personal project. It creates and manages a pool of database connections (in a very simple way). I thought it might be helpful for those who aren't yet comfortable with creating Perl modules or using OO Perl to look through the code, and ask any "how did you do that?" questions they might have. It's can also be an informative exercise for everyone to trash my code :) I'm not thin-skinned, and I'd like to generate some discussion on the list, so feel free to question the point of it. For those who have never installed a module before: tar -xzvf DBIx-Pool-0.01.tar.gz cd DBIx-Pool-0.01 perl Makefile.PL make (as root) make install To check out the PerlDoc on it: perldoc DBIx::Pool The guts of the module is located in the file DBIx-Pool-0.01/Pool.pm. Jeff -- Errors have occurred. We won't tell you where or why. Lazy programmers. -- Hacking haiku -------------- next part -------------- A non-text attachment was scrubbed... Name: DBIx-Pool-0.01.tar.gz Type: application/x-gzip Size: 2209 bytes Desc: not available Url : http://mail.pm.org/archives/norfolk-pm/attachments/20010121/fa4d8398/DBIx-Pool-0.01.tar.bin From jeff at alanne.com Sun Jan 21 13:03:09 2001 From: jeff at alanne.com (Jeff Duffy) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Perl switch statement Message-ID: <01012114030903.23477@cairhien> Greetings; For those who might need it (I imagine that includes everyone), Damian 'The-Perl-community-pays-me-to-hack" Conway has released Switch-2.01, a very nifty and very Perl implementation of the switch/case statement found in many other languages. http://search.cpan.org/search?dist=Switch Highlights include: - 18 different ways (!) to match a case statement, including lmatching against iteral strings, regular expressions, hash key or value existence (my favorite), subroutine output, and many more. - Way flexible expression cascading (even forced fallthrough). This is a very nice way to clean up some of that code you have with fourteen sequential elsif statements :) I'd be happy to cover this at a meeting, too. Jeff -- Errors have occurred. We won't tell you where or why. Lazy programmers. -- Hacking haiku From chicks at chicks.net Wed Jan 31 11:44:19 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [twuug-announce] 31 Jan - [HRPM] Meeting/Dinner Announcement Message-ID: (I know this is a bit late, but it's been one of those months. :) Please pass the word on for the next Hampton Roads Perl Mongers meeting: What: The monthly Hampton Roads Perl Mongers Meeting http://norfolk.pm.org/ Who: Everyone in Hampton Roads interested in perl. There are no dues or signup requirements. All are welcome to attend. Where: Jefferson Lab in Newport News. Directions are on the web and below. When: 7:30 PM till whenever on Wednesday 29 November 2000 It's generally going to be on the last Wednesday of the month unless major holidays intervene. (This puts us consistantly one week before TWUUG.) Why: Why not? What could be better than to come and talk with others about the world's most fun programming language? Jabber, learn, teach, enjoy. Starbucks is not far away. Agenda: Whatever people on the HRPM mailing list decide! Various people who do perl rather often will be there to answer your perl questions. Some expected topics are on the site. ** Jeff Duffy will be doing a presentation on create modules. Directions: (Also available from http://norfolk.pm.org/location.shtml ) Take 64 until you get to the exit for Oyster Point West. Upon exiting, you will be on Oyster Point Road headed toward Jefferson Ave. (If, after exiting, you find yourself approaching the Kiln Creek shopping center and passing Farm Fresh and Kmart, you've exited in the wrong direction, so turn around.) The third light ahead, and the biggest intersection, is Jefferson Ave. Turn left onto Jefferson and go to the second light. On your left is Jefferson Lab. On your right is Dixie Trailer Park. (On the right, near the first light on Jefferson coming from Oyster Point you will find Plaza Azteca. Yum.) Turn left into Jefferson Lab (Onnes Road) and go about 100 yards to the T-intersection at which Onnes ends. (Ignore the totally innocuous Guard Shack on your right.) Turn left and head (in between all the flag poles) directly to CEBAF Center where the meeting will be held. Turn right just before you reach the circular drive in front of CEBAF Center, and park in the parking lot you will see on your left. Find your way into the building and to the building atrium. The atrium is right off the circular drive. Room L104 branches off the atrium on the right. New NOTE!: You will have to be checked in by Collin to keep the security mafia^H^H^H^H^Hpeople happy so try to be there a few minutes early. > 1. What is the possibility of this being added in the future? In the near future, the probability is close to zero. In the distant future, I'll be dead, and posterity can do whatever they like... :-) --lwall - -------------------------------------------------------------------------- * To unsubscribe from the TWUUG discussion list, either send e-mail to - twuug-announce-request@twuug.org with the word "unsubscribe" by itself - in the body of the message or visit: - http://www.twuug.org/lists/twuuglists.html - -------------------------------------------------------------------------- * To unsubscribe from the TWUUG discussion list, either send e-mail to - twuug-announce-request@twuug.org with the word "unsubscribe" by itself - in the body of the message or visit: - http://www.twuug.org/lists/twuuglists.html From cusce at home.com Wed Jan 31 21:36:54 2001 From: cusce at home.com (Collin Cusce') Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Well...umm....gee...uhh... Message-ID: <001101c08c00$39a817e0$40941718@cx782347a> You have no idea how truly sorry I am for not being at the lab to let you guys in. I really totally forgot it was tonight until I read my email at home five mins ago. I am at a loss for words, I have no excuse. It just left my mind and...well..that's pretty much it. Gosh, I was sooo worried I would forget for two weeks, and then what happens....I don't think I am going to be able to convey how disappointed I am in myself for dropping the ball via email. This is rather embarrassing for me and I'm sure was a quite unnerving for you all. I hope you were able to find another place to meet or were not in too much of a state of disarray.......I'm so sorry. Here's a piece of irony...normally I work strictly with ColdFusion, but for the last month and a half I have been doing Perl. Before school today, all I did was hack Perl, and yet for some reason, the meeting never even came to mind. BAH!! This is quite frustrating...now I'm thinking I might not be worthy, but it's up to you. I'll do my best to keep reminders around me to try and make sure this doesn't happen again. I'm not speaking metaphorically when I say "I hang my head in shame." ---------------------------------------------------------------------------- ---- --- I don't proof read, don't correct me, I'm sure it's there ---- ---------------------------------------------------------------------------- ---- Collin Cusce' aka Rafajafar Web Designer -- Intern, Jefferson Labs cusce@home.com cusce@jlab.org ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ "Both The Rock and Bill Gates are known worldwide for their vast array of catch phrases," --Dwayne "The Rock" Johnson ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ From chicks at chicks.net Wed Jan 31 21:41:19 2001 From: chicks at chicks.net (chicks@chicks.net) Date: Thu Aug 5 00:08:13 2004 Subject: [HRPM] Well...umm....gee...uhh... In-Reply-To: <001101c08c00$39a817e0$40941718@cx782347a> Message-ID: On Wed, 31 Jan 2001, Collin Cusce' wrote: > You have no idea how truly sorry I am for not being at the lab to let > you guys in. I really totally forgot it was tonight until I read my > email at home five mins ago. I am at a loss for words, I have no > excuse. It just left my mind and...well..that's pretty much it. Gosh, > I was sooo worried I would forget for two weeks, and then what > happens....I don't think I am going to be able to convey how > disappointed I am in myself for dropping the ball via email. This is > rather embarrassing for me and I'm sure was a quite unnerving for you > all. I hope you were able to find another place to meet or were not in > too much of a state of disarray.......I'm so sorry. Here's a piece of > irony...normally I work strictly with ColdFusion, but for the last > month and a half I have been doing Perl. Before school today, all I > did was hack Perl, and yet for some reason, the meeting never even > came to mind. BAH!! This is quite frustrating...now I'm thinking I > might not be worthy, but it's up to you. I'll do my best to keep > reminders around me to try and make sure this doesn't happen again. > I'm not speaking metaphorically when I say "I hang my head in shame." I took the attitude "hopefully we won't get thrown out" and, mercifully we didn't. It all worked out. We had eight people attending. Jeff gave a good talk on module creation. And it looks like I may have speakers for the next two months! This year may not suck after all. For those that DID show up, if you're willing to be included in a list of attendees for this month, please drop me a note. I'm going to try to get a better archive of meetings maintained for this year. :-) -- Those who cannot remember the past are doomed to buy Microsoft products.